From: Vinodashri L on
I want to make a rectangular crop of 256 by 256 in my image. I want a standardised 256 by 256 window to crop a set of my images. Can you help me with this?
Is it possible in matlab?
From: ImageAnalyst on
On Mar 17, 8:43 am, "Vinodashri L" <vinodas...(a)gmail.com> wrote:
> I want to make a rectangular crop of 256 by 256 in my image. I want a standardised 256 by 256 window to crop a set of my images. Can you help me with this?
> Is it possible in matlab?

-----------------------------------------------------------------------------
Do you have the image processing toolbox? If so, simply use
imcrop(). Or just use regular indexing:
subArray = originalArray(row1:row2, column1:column2);

Of course you need to know what the rows and columns are.
From: Vinodashri L on
thanks a lot.

The issue is for every image my rows and cols keepp changing. So i want a program that gives me a standardized 256 by 256 rectangular crop to select my area of interest in the image?
Is it possible? Without using rows and cols?
I have 50 images to process. My roi varies in every image. So i want a standard 256 by 256 rectangular crop that can be placed on my ROI and used to crop?
From: ImageAnalyst on
Same answer. I can't see how your response would change my answer one
bit.
I said it's possible, and I gave you two ways to do it.
Did you even look at imcrop? It has an interactive mode if that's
what you're looking for.