added a test shoe picture
This commit is contained in:
parent
26bffa48b6
commit
5b7c6f8be0
@ -31,4 +31,17 @@ class EdgeDetectorTest < Minitest::Test
|
||||
sobel.detect_edges.save(output_sobel)
|
||||
end
|
||||
|
||||
def test_robot
|
||||
input = File.expand_path('../../pictures/asics.png', __FILE__)
|
||||
image = ChunkyPNG::Image.from_file(input)
|
||||
|
||||
standard = EdgeDetector.new(image)
|
||||
sobel = SobelEdgeDetector.new(image)
|
||||
|
||||
output_standard = File.expand_path('../../output/asics_standard.png', __FILE__)
|
||||
output_sobel = File.expand_path('../../output/asics_sobel.png', __FILE__)
|
||||
|
||||
standard.detect_edges.save(output_standard)
|
||||
sobel.detect_edges.save(output_sobel)
|
||||
end
|
||||
end
|
BIN
test/output/asics_sobel.png
Normal file
BIN
test/output/asics_sobel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 161 KiB |
BIN
test/output/asics_standard.png
Normal file
BIN
test/output/asics_standard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 183 KiB |
BIN
test/pictures/asics.png
Normal file
BIN
test/pictures/asics.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 312 KiB |
Loading…
Reference in New Issue
Block a user