comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Interactively crop an image with NG
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Interactively crop an image with NG [message #86212] Thu, 17 October 2013 12:27 Go to next message
Brian Daniel is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D data on a color coded line plot!
Next Topic: NaN problem in integer arrays

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:14:31 PDT 2025

Total time taken to generate the page: 0.00479 seconds