[GRASS-user] i.rgb.his/i.his.rgb not working properly
Markus Neteler
neteler at osgeo.org
Tue Sep 29 15:38:11 EDT 2009
On Tue, Sep 29, 2009 at 3:26 PM, Georg Kaspar <georg at muenster.de> wrote:
> Hi,
>
> I'm having some problems using i.rgb.his/i.his.rgb to convert quickbird data
> from RGB to IHS and vice versa (original purpose was pan sharpening). The
> results look totally weird and I don't know why.
> Here is a protocol along with some screenshots:
>
> [1] d.rgb r=szene1_mul.4 g=szene1_mul.3 b=szene1_mul.2
> --> http://img96.imageshack.us/img96/9487/screen1i.png
are you sure about the channel order?
> [2] i.rgb.his r=szene1_mul.4 g=szene1_mul.3 b=szene1_mul.2 h=szene1_234.h
> i=szene1_234.i s=szene1_234.s
>
> [3] d.his h=szene1_234.h i=szene1_234.i s=szene1_234.s
> --> http://img35.imageshack.us/img35/6746/screen2pm.png
>
> [4] i.his.rgb h=szene1_234.h i=szene1_234.i s=szene1_234.s r=szene1_234.r
> g=szene1_234.g b=szene1_234.b
>
> [5] d.rgb r=szene1_234.r g=szene1_234.g b=szene1_234.b
> --> http://img246.imageshack.us/img246/1856/screen3pa.png
>
> I also repeated the process using landsat data from the nc data set - same
> problem here.
ok, I have tried that, too:
g.region rast=lsat7_2002_10
d.mon x0
d.rgb b=lsat7_2002_10 g=lsat7_2002_20 r=lsat7_2002_30
i.rgb.his b=lsat7_2002_10 g=lsat7_2002_20 r=lsat7_2002_30
h=lsat7_2002_h i=lsat7_2002_i s=lsat7_2002_s
d.his h=lsat7_2002_h i=lsat7_2002_i s=lsat7_2002_s
-> result is some grey scale image.
Perhaps that's correct?
Find attached a RGB/HIS fusion script which I wrote some years ago:
# NC data set:
i.fusion.his b=lsat7_2002_10 g=lsat7_2002_20 r=lsat7_2002_30
pan=lsat7_2002_80 prefix=fusion
g.region -p rast=fusion.red
d.mon x0
d.rgb r=fusion.red b=fusion.green g=fusion.blue
It may need some cosmetics to follow 6.4 coding standard but seems
yet to work.
cheers
Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i.fusion.his
Type: application/octet-stream
Size: 3866 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20090929/63a98820/i.fusion.obj
More information about the grass-user
mailing list