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

Home » Public Forums » archive » Re: How to subset many images in batch mode?
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: How to subset many images in batch mode? [message #52282 is a reply to message #52279] Tue, 23 January 2007 09:36 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
kavin wrote:
> Hi,everyone!
>
> I want to subset many images with one smaller image in batch mode,but I
> can not find the right command to fulfill it.
> waiting for the answers....................
>

So you mean you have one small image that you want to use as a mask?

1) get the corners coordinates of your "small image"
2) convert them to the pixel coordinate of your "big image" (in ENVI I
believe)
3) Find the cells that are within this area, using POLYFILL
4) subset your image using the indices from #3 newImage =
bigImage[indices]
5) if your "big images" have the same characteristics, use the indices
you found in #3 for all of them. If not, go to #2

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: print wrong characters
Next Topic: read VTK files with IDL

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

Current Time: Sun Oct 12 00:34:23 PDT 2025

Total time taken to generate the page: 1.35649 seconds