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

Home » Public Forums » archive » subset an image by roi in idl
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: subset an image by roi in idl [message #50468 is a reply to message #50330] Fri, 29 September 2006 10:34 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> ;Prepare the subset dimensions
> dims[0]=-1L
> dims[1]=min(xf)-1
> dims[2]=max(xf)-1
> dims[3]=min(yf)-1
> dims[4]=max(yf)-1

Do not do the -1 here.
Envi_convert_file_coordinates already returns the pixel locations
starting at 0 and therefore doing -1 induces a shift of 1 pixel in the
subseted image.

This method only returns rectangular subset. You might want to mask the
pixels outside of your polygon.

Jean H.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 3D triangulation of x,y,z vertices
Next Topic: Re: ps file with text

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

Current Time: Wed Oct 08 20:14:19 PDT 2025

Total time taken to generate the page: 0.00525 seconds