bwselect and bwfill image toolbox bug

Rosen Diankov rdiankov at cs.cmu.edu
Tue Feb 24 11:35:06 CST 2009


hi all,

bwselect calling conventions are:
 [IMOUT, IDX] = bwselect(IM, COLS, ROWS, CONNECT)

and bwfill calling conventions are:
 [BW2, IDX] = bwfill(BW1, R, C, N)

Notice how the columns and rows are flipped. This is a *big* problem
because bwselect happily calls bwfill with inputting its columns
before rows. This causes octave to crash with memory corruption.

Another problem is possible compatibility issues with matlab because
matlab's bwfill function is
 [BW2, IDX] = bwfill(BW1, C, R, N)

this is tested with the newest release of the image toolbox 1.0.8

rosen,


More information about the Help-octave mailing list