mawen1250
28th March 2015, 16:22
Thanks for the updates, Myrsloik!
core.generic.Canny(src, 2.5, 2.5, 0.5, [0,1,2])
After some tests with it, here's some findings:
1. The pixel near the border is always zero (two pixels for the bottom due to the shift).
2. For the new one, the shift remains unchanged.
3. For the new one, with 8bit input and the above threshold, there's an unexpected line in the result.
4. For the new one, with 16bit input and the above threshold (which may be too low for 16bit input in practice), there's an unexpected line in a different position. After multiplying the threshold by 256, the unexpected line disappeared.
input image
http://i683.photobucket.com/albums/vv197/mawen1250/Test_zpsslcmjqxf.png
old generic.Canny with 8/16bit input
http://i683.photobucket.com/albums/vv197/mawen1250/Test%20-%20old%20generic.Canny_zpswmqg3lto.png
new generic.Canny with 8bit input
http://i683.photobucket.com/albums/vv197/mawen1250/Test%20-%20new%20generic.Canny%208bit_zpsaxmcoc81.png
new generic.Canny with 16bit input
http://i683.photobucket.com/albums/vv197/mawen1250/Test%20-%20new%20generic.Canny%2016bit_zpsneblnmrh.png
core.generic.Canny(src, 2.5, 2.5, 0.5, [0,1,2])
After some tests with it, here's some findings:
1. The pixel near the border is always zero (two pixels for the bottom due to the shift).
2. For the new one, the shift remains unchanged.
3. For the new one, with 8bit input and the above threshold, there's an unexpected line in the result.
4. For the new one, with 16bit input and the above threshold (which may be too low for 16bit input in practice), there's an unexpected line in a different position. After multiplying the threshold by 256, the unexpected line disappeared.
input image
http://i683.photobucket.com/albums/vv197/mawen1250/Test_zpsslcmjqxf.png
old generic.Canny with 8/16bit input
http://i683.photobucket.com/albums/vv197/mawen1250/Test%20-%20old%20generic.Canny_zpswmqg3lto.png
new generic.Canny with 8bit input
http://i683.photobucket.com/albums/vv197/mawen1250/Test%20-%20new%20generic.Canny%208bit_zpsaxmcoc81.png
new generic.Canny with 16bit input
http://i683.photobucket.com/albums/vv197/mawen1250/Test%20-%20new%20generic.Canny%2016bit_zpsneblnmrh.png