-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add find_edges method in Image (#531)
Closes #523 ### Summary of Changes Added find_edges method for the new image class. Works just like the find_edges method from the old Image class with pillow. Fixed images with one channel for both repr and both to_file methods. Added grayscale images that only contain one channel each. Re-enabled Image.adjust_color_balance & Image.find_edges in the Image tutorial. Added warning for adjust_color_balance if it is used on a grayscale image. --------- Co-authored-by: megalinter-bot <[email protected]>
- Loading branch information
1 parent
dba23f9
commit d728eb6
Showing
99 changed files
with
183 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 Bytes
...ise.test_should_add_noise[opaque-1-channel-jpg-grayscale-minimum noise-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 Bytes
...se.test_should_add_noise[opaque-1-channel-jpg-grayscale-minimum noise-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...dNoise.test_should_add_noise[opaque-1-channel-jpg-grayscale-some noise-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...Noise.test_should_add_noise[opaque-1-channel-jpg-grayscale-some noise-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...dNoise.test_should_add_noise[opaque-1-channel-jpg-grayscale-very noisy-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...Noise.test_should_add_noise[opaque-1-channel-jpg-grayscale-very noisy-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+114 Bytes
...ise.test_should_add_noise[opaque-1-channel-png-grayscale-minimum noise-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+114 Bytes
...se.test_should_add_noise[opaque-1-channel-png-grayscale-minimum noise-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...dNoise.test_should_add_noise[opaque-1-channel-png-grayscale-some noise-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...Noise.test_should_add_noise[opaque-1-channel-png-grayscale-some noise-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...dNoise.test_should_add_noise[opaque-1-channel-png-grayscale-very noisy-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 Bytes
...Noise.test_should_add_noise[opaque-1-channel-png-grayscale-very noisy-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+150 Bytes
...est_should_adjust_contrast[opaque-1-channel-jpg-grayscale-large factor-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+150 Bytes
...st_should_adjust_contrast[opaque-1-channel-jpg-grayscale-large factor-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 Bytes
...est_should_adjust_contrast[opaque-1-channel-jpg-grayscale-small factor-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 Bytes
...st_should_adjust_contrast[opaque-1-channel-jpg-grayscale-small factor-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+113 Bytes
...est_should_adjust_contrast[opaque-1-channel-png-grayscale-large factor-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+113 Bytes
...st_should_adjust_contrast[opaque-1-channel-png-grayscale-large factor-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+115 Bytes
...est_should_adjust_contrast[opaque-1-channel-png-grayscale-small factor-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+115 Bytes
...st_should_adjust_contrast[opaque-1-channel-png-grayscale-small factor-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+242 Bytes
...stBlur.test_should_return_blurred_image[opaque-1-channel-jpg-grayscale-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+242 Bytes
...tBlur.test_should_return_blurred_image[opaque-1-channel-jpg-grayscale-cuda].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+239 Bytes
...stBlur.test_should_return_blurred_image[opaque-1-channel-png-grayscale-cpu].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+239 Bytes
...tBlur.test_should_return_blurred_image[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+154 Bytes
...t_should_adjust_brightness[opaque-1-channel-jpg-grayscale-large factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+154 Bytes
..._should_adjust_brightness[opaque-1-channel-jpg-grayscale-large factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+193 Bytes
...t_should_adjust_brightness[opaque-1-channel-jpg-grayscale-small factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+193 Bytes
..._should_adjust_brightness[opaque-1-channel-jpg-grayscale-small factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+104 Bytes
...t_should_adjust_brightness[opaque-1-channel-png-grayscale-large factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+104 Bytes
..._should_adjust_brightness[opaque-1-channel-png-grayscale-large factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+114 Bytes
...t_should_adjust_brightness[opaque-1-channel-png-grayscale-small factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+114 Bytes
..._should_adjust_brightness[opaque-1-channel-png-grayscale-small factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+216 Bytes
...rtToGrayscale.test_convert_to_grayscale[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+216 Bytes
...tToGrayscale.test_convert_to_grayscale[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+116 Bytes
...rtToGrayscale.test_convert_to_grayscale[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+116 Bytes
...tToGrayscale.test_convert_to_grayscale[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+277 Bytes
...stCrop.test_should_return_cropped_image[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+277 Bytes
...tCrop.test_should_return_cropped_image[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+148 Bytes
...stCrop.test_should_return_cropped_image[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+148 Bytes
...tCrop.test_should_return_cropped_image[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+213 Bytes
...Edges.test_should_return_edges_of_image[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+213 Bytes
...dges.test_should_return_edges_of_image[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+140 Bytes
...Edges.test_should_return_edges_of_image[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+140 Bytes
...dges.test_should_return_edges_of_image[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+126 KB
...FindEdges.test_should_return_edges_of_image[opaque-3-channel-jpg-plane-cpu].png
Oops, something went wrong.
Binary file added
BIN
+126 KB
...indEdges.test_should_return_edges_of_image[opaque-3-channel-jpg-plane-cuda].png
Oops, something went wrong.
Binary file added
BIN
+69 Bytes
...es.test_should_return_edges_of_image[opaque-3-channel-jpg-white_square-cpu].png
Oops, something went wrong.
Binary file added
BIN
+69 Bytes
...s.test_should_return_edges_of_image[opaque-3-channel-jpg-white_square-cuda].png
Oops, something went wrong.
Binary file added
BIN
+69 Bytes
...es.test_should_return_edges_of_image[opaque-3-channel-png-white_square-cpu].png
Oops, something went wrong.
Binary file added
BIN
+69 Bytes
...s.test_should_return_edges_of_image[opaque-3-channel-png-white_square-cuda].png
Oops, something went wrong.
Binary file added
BIN
+141 KB
...FindEdges.test_should_return_edges_of_image[opaque-4-channel-png-plane-cpu].png
Oops, something went wrong.
Binary file added
BIN
+141 KB
...indEdges.test_should_return_edges_of_image[opaque-4-channel-png-plane-cuda].png
Oops, something went wrong.
Binary file added
BIN
+105 Bytes
...Edges.test_should_return_edges_of_image[transparent-4-channel-png-rgba-cpu].png
Oops, something went wrong.
Binary file added
BIN
+105 Bytes
...dges.test_should_return_edges_of_image[transparent-4-channel-png-rgba-cuda].png
Oops, something went wrong.
Binary file added
BIN
+212 Bytes
...izontally.test_should_flip_horizontally[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+212 Bytes
...zontally.test_should_flip_horizontally[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
...izontally.test_should_flip_horizontally[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
...zontally.test_should_flip_horizontally[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+212 Bytes
...pVertically.test_should_flip_vertically[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+212 Bytes
...Vertically.test_should_flip_vertically[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
...pVertically.test_should_flip_vertically[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
...Vertically.test_should_flip_vertically[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+217 Bytes
...tInvertColors.test_should_invert_colors[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+217 Bytes
...InvertColors.test_should_invert_colors[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+116 Bytes
...tInvertColors.test_should_invert_colors[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+116 Bytes
...InvertColors.test_should_invert_colors[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+74 Bytes
...test_should_return_resized_image[(2, 3)-opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+74 Bytes
...est_should_return_resized_image[(2, 3)-opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+74 Bytes
...test_should_return_resized_image[(2, 3)-opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+74 Bytes
...est_should_return_resized_image[(2, 3)-opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+1.63 KB
..._should_return_resized_image[(700, 400)-opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+1.63 KB
...should_return_resized_image[(700, 400)-opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+1.15 KB
..._should_return_resized_image[(700, 400)-opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+1.15 KB
...should_return_resized_image[(700, 400)-opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+210 Bytes
...t_should_return_clockwise_rotated_image[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+210 Bytes
..._should_return_clockwise_rotated_image[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
...t_should_return_clockwise_rotated_image[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
..._should_return_clockwise_rotated_image[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+210 Bytes
..._return_counter_clockwise_rotated_image[opaque-1-channel-jpg-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+210 Bytes
...return_counter_clockwise_rotated_image[opaque-1-channel-jpg-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
..._return_counter_clockwise_rotated_image[opaque-1-channel-png-grayscale-cpu].png
Oops, something went wrong.
Binary file added
BIN
+115 Bytes
...return_counter_clockwise_rotated_image[opaque-1-channel-png-grayscale-cuda].png
Oops, something went wrong.
Binary file added
BIN
+226 Bytes
...harpen.test_should_sharpen[opaque-1-channel-jpg-grayscale-large factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+226 Bytes
...arpen.test_should_sharpen[opaque-1-channel-jpg-grayscale-large factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+259 Bytes
...harpen.test_should_sharpen[opaque-1-channel-jpg-grayscale-small factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+259 Bytes
...arpen.test_should_sharpen[opaque-1-channel-jpg-grayscale-small factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+259 Bytes
...Sharpen.test_should_sharpen[opaque-1-channel-jpg-grayscale-zero factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+259 Bytes
...harpen.test_should_sharpen[opaque-1-channel-jpg-grayscale-zero factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+134 Bytes
...harpen.test_should_sharpen[opaque-1-channel-png-grayscale-large factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+134 Bytes
...arpen.test_should_sharpen[opaque-1-channel-png-grayscale-large factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+195 Bytes
...harpen.test_should_sharpen[opaque-1-channel-png-grayscale-small factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+195 Bytes
...arpen.test_should_sharpen[opaque-1-channel-png-grayscale-small factor-cuda].png
Oops, something went wrong.
Binary file added
BIN
+191 Bytes
...Sharpen.test_should_sharpen[opaque-1-channel-png-grayscale-zero factor-cpu].png
Oops, something went wrong.
Binary file added
BIN
+191 Bytes
...harpen.test_should_sharpen[opaque-1-channel-png-grayscale-zero factor-cuda].png
Oops, something went wrong.
Oops, something went wrong.