added a test shoe picture

This commit is contained in:
Tim Kächele 2015-08-15 09:47:08 +02:00
parent 26bffa48b6
commit 5b7c6f8be0
4 changed files with 13 additions and 0 deletions

View File

@ -31,4 +31,17 @@ class EdgeDetectorTest < Minitest::Test
sobel.detect_edges.save(output_sobel) sobel.detect_edges.save(output_sobel)
end 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 end

BIN
test/output/asics_sobel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
test/pictures/asics.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB