Glynn Clements wrote:
> Any help would be welcome to fix d.his,
I'll fix this in a similar manner to d.rgb, i.e. scrap the misguided
attempt to generate a composite "RGB" output layer and just display
the result of HIS->RGB conversion using R_RGB_raster().
Having looked into this, the name is somewhat misleading:
1. The "hue" map is only really a hue map if used with a colour table
such as "rainbow" where all entries have 100% intensity and
saturation. Otherwise the intensity and saturation values are used to
scale those provided by the i_map and s_map parameters.
2. The "saturation" map isn't. An all-black saturation map would
result in grey-scale output, but specifying an all-black for the
"s_map" parameter will actually output solid 50% grey. "haze map"
would be more accurate.
From reading the d.his manpage, I'm assuming that the behaviour is
correct and the name isn't, so I'll maintain the existing behaviour.
Would there be any value in a program which displays (or converts)
actual HIS layers? Is HIS ever used for geographical raster data?
--
Glynn Clements <glynn.clements@virgin.net>
From neteler Tue Jun 26 09:38:24 2001
Return-Path: <neteler>
Received: by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4)
id JAA23389; Tue, 26 Jun 2001 09:38:24 +0100
Date: Tue, 26 Jun 2001 09:38:24 +0100
From: Markus Neteler <neteler@geog.uni-hannover.de>
To: Glynn Clements <glynn.clements@virgin.net>
Cc: grass5 developers list <grass5@geog.uni-hannover.de>
Subject: Re: [GRASS5] Driver Update
Message-ID: <20010626093823.I19099@hgeo02.geog.uni-hannover.de>
Mail-Followup-To: Glynn Clements <glynn.clements@virgin.net>,
grass5 developers list <grass5@geog.uni-hannover.de>
References: <15121.14708.979191.289876@cerise.nosuchdomain.co.uk> <20010613171316.K10125@hgeo02.geog.uni-hannover.de> <15143.56498.53250.288145@cerise.nosuchdomain.co.uk> <20010614114747.C11308@hgeo02.geog.uni-hannover.de> <15144.45297.673435.379639@cerise.nosuchdomain.co.uk> <20010614161829.B18856@hgeo02.geog.uni-hannover.de> <15145.8392.320239.598657@cerise.nosuchdomain.co.uk> <20010625171204.G18370@hgeo02.geog.uni-hannover.de> <15159.51431.130059.539081@cerise.nosuchdomain.co.uk> <15159.60464.129470.381175@cerise.nosuchdomain.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <15159.60464.129470.381175@cerise.nosuchdomain.co.uk>; from glynn.clements@virgin.net on Tue, Jun 26, 2001 at 02:58:08AM +0100
Sender: grass5-admin@geog.uni-hannover.de
Errors-To: grass5-admin@geog.uni-hannover.de
X-BeenThere: grass5@geog.uni-hannover.de
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:grass5-request@geog.uni-hannover.de?subject=help>
List-Post: <mailto:grass5@geog.uni-hannover.de>
List-Subscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5>,
<mailto:grass5-request@geog.uni-hannover.de?subject=subscribe>
List-Id: GRASS 5 Developers mailing list <grass5.geog.uni-hannover.de>
List-Unsubscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5>,
<mailto:grass5-request@geog.uni-hannover.de?subject=unsubscribe>
List-Archive: <http://www.geog.uni-hannover.de/pipermail/grass5/>
Status: O
Content-Length: 2564
Lines: 63
On Tue, Jun 26, 2001 at 02:58:08AM +0100, Glynn Clements wrote:
Glynn Clements wrote:
> > Any help would be welcome to fix d.his,
>
> I'll fix this in a similar manner to d.rgb, i.e. scrap the misguided
> attempt to generate a composite "RGB" output layer and just display
> the result of HIS->RGB conversion using R_RGB_raster().
Having looked into this, the name is somewhat misleading:
1. The "hue" map is only really a hue map if used with a colour table
such as "rainbow" where all entries have 100% intensity and
saturation. Otherwise the intensity and saturation values are used to
scale those provided by the i_map and s_map parameters.
2. The "saturation" map isn't. An all-black saturation map would
result in grey-scale output, but specifying an all-black for the
"s_map" parameter will actually output solid 50% grey. "haze map"
would be more accurate.
From reading the d.his manpage, I'm assuming that the behaviour is
correct and the name isn't, so I'll maintain the existing behaviour.
Would there be any value in a program which displays (or converts)
actual HIS layers? Is HIS ever used for geographical raster data?
Glynn,
thanks for your fixes. Now color quality is as expected (no more odd
dithering). However, unfortunately the "output" option is gone which
is needed - or do you know a different way to store such images?
An example, where this is needed: If you want to create shaded maps
(as done in my example from yesterday), you need the "output" parameter
to store the result. This feature is also implemented in "tcltkgrass"
(Display -> shaded map).
Another example, where the RGB/IHS transform is used (i.rgb.his, i.his.rgb)
is resolution improvement of satellite images:
low.res Image I2: high res. pan image high res. image
red ---| |-- I replace |- I2 --| |--- R
| | | |
green ---| RGB/IHS |-- H ---------------------| IHS/RGB |--- G
| | | |
blue ---| |-- S ---------------------| |--- B
g.region
res change
here
This approach needs low.res multispectral and outputs "high res"
multispectral using the high res. geometrical information and
low res. multispectral color information.
But for above (shaded maps), the d.his approach was much more convenient.
Regards
Markus