Interactively crop an image with NG [message #86212] |
Thu, 17 October 2013 12:27  |
Brian Daniel
Messages: 80 Registered: July 2009
|
Member |
|
|
I have a large image file. I use image() to visualize, zoom in, and write down the image coordinates to effectively crop my image in the code. This approach is a bit wonky, and I'd like to interactively crop my image, as this is just an initial processing component to my whole algorithm. Is there a straight forward way to add a crop button to the graphics window? Or, after the user zooms to the desired crop dimensions, hit a button and output the viewing dimensions? Thanks for your help.
|
|
|
Re: Interactively crop an image with NG [message #86213 is a reply to message #86212] |
Thu, 17 October 2013 12:56  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brian J. Daniel writes:
> I have a large image file. I use image() to visualize, zoom in, and write down the image coordinates to effectively crop my image in the code. This approach is a bit wonky, and I'd like to interactively crop my image, as this is just an initial processing component to my whole algorithm. Is there a straight forward way to add a crop button to the graphics window? Or, after the user zooms to the desired crop dimensions, hit a button and output the viewing dimensions?
I don't know anything about the image function, but it might take 10
minutes to add this functionality to cgZImage:
cgZImage, cgDemoData(7)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|