Re: How to subset many images in batch mode? [message #52261] |
Wed, 24 January 2007 22:29 |
kavin
Messages: 5 Registered: December 2006
|
Junior Member |
|
|
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?
On 1月23日, 下午10时34分, David Fanning <n...@dfanning.com>
wrote:
> kavin writes:
>> 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....................Say what!? I think I know why the answers are elusive. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: How to subset many images in batch mode? [message #52265 is a reply to message #52261] |
Wed, 24 January 2007 09:57  |
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
>
>
|
|
|
Re: How to subset many images in batch mode? [message #52279 is a reply to message #52265] |
Wed, 24 January 2007 00:35  |
kavin
Messages: 5 Registered: December 2006
|
Junior Member |
|
|
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?
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
|
|
|
Re: How to subset many images in batch mode? [message #52282 is a reply to message #52279] |
Tue, 23 January 2007 09:36  |
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
|
|
|
Re: How to subset many images in batch mode? [message #52283 is a reply to message #52282] |
Tue, 23 January 2007 09:24  |
James Kuyper
Messages: 425 Registered: March 2000
|
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....................
What do you mean by "subset [an] image with [a] smaller image"? I know
what subsetting means, and the result creates a smaller image, but I
don't understand where the word "with" comes in.
REBIN is usable for subsetting if you're subsetting by an integral
factor on each dimension. CONGRID is the routine you need if it isn't
an integral factor.
I don't know of any special problems with doing this in batch mode.
What have you attempted, and how does it fail?
|
|
|
Re: How to subset many images in batch mode? [message #52284 is a reply to message #52283] |
Tue, 23 January 2007 06:34  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
kavin writes:
> 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....................
Say what!? I think I know why the answers are elusive. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|