finding smalest rectangle encloses at least 16X32 black pixels

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 31 Mär. 2011
doc bwdist
look at some of the distance metric options.

Weitere Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by