By using threshold, colour segmentation i already can get the target of the eyes with square box!
So how am i gonna crop the eyes?
-------------------------------------------------------------
You can crop with imcrop() or just do
croppedImage = fullImage(row1:row2, column1:column2);
ok if i wanna crop the iris how am i gonna do it?
Coz it is round object imcrop just can't crop round object am i right imageAnalyst?
--------------------------------------------------------------
Perhaps you need to take another look at my demo where I "crop" round
coins.
http://www.mathworks.com/matlabcentral/fileexchange/25157
You have to segment out your iris and then make a mask and then dot-
multiply the mask by your original image. This will blacken
everything else in the image except for your round iris. Of course
you know that matrices have to be rectangular, right? You can't have
a round matrix obviously. But you can have a rectangular matrix with
everything zeroed out except for a circular region. If you want, you
can go further and crop down to the bounding box of the circular
region to get another, smaller rectangular matrix.
Does that explain it well enough?
What do you really want anyway? Is a small rectangular region around
your iris with the stuff outside the circular iris blackened your
final goal? I doubt it. What are you going to do with it? You're
going to do something with it. Are you going to then create a feature
vector and compare against a database of pre-stored feature vectors??
-------------------------------------------------------------------------------------
If my first paragraph above in my prior response doesn't explain it,
then sorry, I don't understand. It gives you just the iris pixels as
an oval shape on a black background as a rectangular image. If this
is not what you want, then you'll have to explain it more clearly.
Maybe you can post some pseudo code or a step by step explanation of
what you want to do, and somebody can expand on that for you.