finding smalest rectangle encloses at least 16X32 black pixels

1 view (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!