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

Home » Public Forums » archive » croping jpeg image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: croping jpeg image [message #91218 is a reply to message #91207] Wed, 17 June 2015 11:46 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Wednesday, June 17, 2015 at 8:44:26 AM UTC-5, kpaa...@gmail.com wrote:
> i have opened a jpeg image in idl using
> tv,image,true=1
>
> now i want to crop only the central region of the sun where sunspots are present.... for these i used the cursor command and placed it in low left and right---got the co-ordinates----and then placed the cursor at right top--got the x and y......then i used image=image[low x:topx,lowy:topy]
>
> but im not getting the image croped....instead getting
> % subscript range values of the form low:high must be >=0,<size,with low<=high:image

What are the values for low_x, top_x, etc? What are the dimensions of image?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Issue using the XROI command
Next Topic: cgWindow - what am I doing wrong that makes winID change values?

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

Current Time: Wed Oct 08 18:32:40 PDT 2025

Total time taken to generate the page: 0.00182 seconds