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 #91220 is a reply to message #91207] Wed, 17 June 2015 16:27 Go to previous messageGo to previous message
jimuba is currently offline  jimuba
Messages: 9
Registered: February 2009
Junior Member
Considering:

> i have opened a jpeg image in idl using
> tv,image,true=1

This means that the image array is pixel interleaved, with dimensions like:

[3,n,m]

To crop the image you need to specify all three dimension in the array, for example:

image=image[*,lowx:topx,lowy:topy]

I hope this helps.

-Jim
[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 14:13:08 PDT 2025

Total time taken to generate the page: 0.00268 seconds