From: Deepak Sankar on
Hey all,

I have a question with cropping images using imcrop interactively. I need to crop a image to user defined size. Is it possible to have a constant crop size but the crop location might be different for different images. By using imcrop, we can specify the size but we also have to include the location, which I dont want to. The location has to be specified by the user interactively.


Thanks
Deepak
From: Joseph on
"Deepak Sankar" <deepaksankar(a)yahoo.com> wrote in message <i2kloi$mnn$1(a)fred.mathworks.com>...
> Hey all,
>
> I have a question with cropping images using imcrop interactively. I need to crop a image to user defined size. Is it possible to have a constant crop size but the crop location might be different for different images. By using imcrop, we can specify the size but we also have to include the location, which I dont want to. The location has to be specified by the user interactively.
>
>
> Thanks
> Deepak

I've done something like this before. Try using "ginput" to get the user to specify the starting position for cropping.