finding smalest rectangle encloses at least 16X32 black pixels

2 次查看(过去 30 天)
sir i have edge image of size 1024X768 ,i need to find the smallest rectangle centered on (i,j) which encloses at least 16X32 black pixels,with window size of 32X64.
that is by counting the number of black pixels in 16X32 points which regards (i j) in edge image as the center and window size is 32X64.
please help in coding sir

采纳的回答

Sean de Wolski
Sean de Wolski 2011-3-31
doc bwdist
look at some of the distance metric options.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by