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 #52265 is a reply to message #52261] Wed, 24 January 2007 09:57 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
kavin wrote:
> yeah,I want to use a smaller image as mask to subset many big images
> automatically.
> It's a heave work.
> I want to know that does there exist any ENVI routine to accomplish my
> task automated?

I don't think there is 1 function for this... so you will have to
implement the 4 steps described below!

Jean

>
> On 1锟斤拷24锟斤拷, 锟斤拷锟斤拷1时36锟斤拷, "Jean H."
> <jghas...@DELTHIS.ucalgary.ANDTHIS.ca> wrote:
>
>> 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: Thu Oct 09 23:41:54 PDT 2025

Total time taken to generate the page: 2.08219 seconds