Pixel Editing and Resizing [message #63636] |
Sun, 16 November 2008 18:47  |
Wasit.Weather
Messages: 62 Registered: February 2008
|
Member |
|
|
Hello Everyone,
I have two questions, may be very simple. Forgive me, I am not good at
IDL programming.
1. How to resize pixel size. Just like with Envi--Basic Tools --Resize
Data -- Change the output Pixel Size. not enlarge image. How can I do
it by IDL?
2. If a pixel is cloudy, I need to search for other 4 pixels around
it, and then get the mean of clear ones if there is any, then replace
the all 5 pixels with the mean one.
Thanks for your help
|
|
|
Re: Pixel Editing and Resizing [message #63748 is a reply to message #63636] |
Mon, 17 November 2008 08:46   |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
Elkunn wrote:
> On Nov 17, 9:59�am, Paolo <pgri...@gmail.com> wrote:
>> Elkunn wrote:
>>> Hello Everyone,
>>> I have two questions, may be very simple. Forgive me, I am not good at
>>> IDL programming.
>>> 1. How to resize pixel size. Just like with Envi--Basic Tools --Resize
>>> Data -- Change the output Pixel Size. not enlarge image. How can I do
>>> it by IDL?
>>
>> Pixel size of what?
>>
>> Paolo
>>
>>
>>
>>
>>
>>> 2. If a pixel is cloudy, �I need to search for other 4 pixels around
>>> it, and then get the mean of clear ones if there is any, then replace
>>> the all 5 pixels with the mean one.
>>
>>> Thanks for your help- Hide quoted text -
>>
>> - Show quoted text -
>
> Resize the pixel size from 1 km to 5 km.
First you'll have to decide what to do with your 25 pixel values...
Average? resampling?
Check out CONGRID and REBIN.
Cheers,
Paolo
>
> Thanks
|
|
|
|
|
Re: Pixel Editing and Resizing [message #63943 is a reply to message #63636] |
Sun, 23 November 2008 14:11  |
guillermo.castilla.ca
Messages: 27 Registered: September 2008
|
Junior Member |
|
|
> Thanks
> First, I want to edit the pixel values, namely, replace neibouring 5
> pixels wiht with mean of them.
> Then, make a resampling.
Look in the ENVI help for a procedure called resize_doit.
You want to use it with the keyword interp=3. This interpolation
method (pixel aggregate) is equivalent to computing the mean of the
original pixels inside each new coarse pixel.
Cheers
Guillermo
|
|
|
Re: Pixel Editing and Resizing [message #63959 is a reply to message #63748] |
Sat, 22 November 2008 08:47  |
Wasit.Weather
Messages: 62 Registered: February 2008
|
Member |
|
|
On Nov 17, 10:46 am, Paolo <pgri...@gmail.com> wrote:
> Elkunn wrote:
>> On Nov 17, 9:59 am, Paolo <pgri...@gmail.com> wrote:
>>> Elkunn wrote:
>>>> Hello Everyone,
>>>> I have two questions, may be very simple. Forgive me, I am not good at
>>>> IDL programming.
>>>> 1. How to resizepixelsize. Just like with Envi--Basic Tools --Resize
>>>> Data -- Change the outputPixelSize. not enlarge image. How can I do
>>>> it by IDL?
>
>>> Pixelsize of what?
>
>>> Paolo
>
>>>> 2. If apixelis cloudy, I need to search for other 4 pixels around
>>>> it, and then get the mean of clear ones if there is any, then replace
>>>> the all 5 pixels with the mean one.
>
>>>> Thanks for your help- Hide quoted text -
>
>>> - Show quoted text -
>
>> Resize thepixelsize from 1 km to 5 km.
>
> First you'll have to decide what to do with your 25pixelvalues...
> Average? resampling?
> Check out CONGRID and REBIN.
>
> Cheers,
> Paolo
>
>
>
>
>
>> Thanks- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Thanks
First, I want to edit the pixel values, namely, replace neibouring 5
pixels wiht with mean of them.
Then, make a resampling.
|
|
|