From: ImageAnalyst on
I knew what you meant. I assumed you were thinking of the find()
function. But can you tell me what the find function does? I mean
REALLY think about what it does. Can you explain to me its procedure
for finding all those 1's? Then read my prior answer again.

You can open the code for imerode by clicking in it and hitting
control-D.