r.in.gdal -e input=image.jpg target=image.jgw ouptput=imagename
all I get are three identical grayscale raster maps: imagename.red,
imagename.blue., imagename.green
which makes sense because I haven't told it how to interpret the
grayscale values in image.jpg
What am I missing?
Thanks.
M
============================================
Use r.composite to merge the three rbg maps into the final raster:
http://grass.itc.it/grass60/manuals/html60_user/r.composite.html
~ Eric.
Thanks for your quick response,
The problem is that imagename.red, imagename.green, and imagename.blue resulting from r.in.gdal, are identical grayscale images. Their histograms are exactly the same, so the composite ends up being grayscale...it should be RGB right? But r.composite would produce an RGB raster map only if xxxx.red, xxxx.green, and xxxx.blue are distinct, right?
Is there a problem with the .jpg, or am I importing it incorrectly?
Is there supposed to be a look-up-table associated with the image that I use to generate the xxxx.red, xxxx.green, xxxx.blue?
Thanks.
M
At 08:30 AM 2/4/2006, you wrote:
r.in.gdal -e input=image.jpg target=image.jgw ouptput=imagename
all I get are three identical grayscale raster maps: imagename.red,
imagename.blue., imagename.green
which makes sense because I haven't told it how to interpret the
grayscale values in image.jpg
What am I missing?
Thanks.
M
============================================
Use r.composite to merge the three rbg maps into the final raster:
http://grass.itc.it/grass60/manuals/html60_user/r.composite.html
~ Eric.
On Sat, 04 Feb 2006 21:38:53 -0600
Martin du Saire <mdusaire@umn.edu> wrote:
Thanks for your quick response,
The problem is that imagename.red, imagename.green, and
imagename.blue resulting from r.in.gdal, are identical grayscale
images. Their histograms are exactly the same, so the composite ends
up being grayscale...it should be RGB right? But r.composite would
produce an RGB raster map only if xxxx.red, xxxx.green, and xxxx.blue
are distinct, right?
What does "gdalinfo image.jpg" say? If you open it in OpenEV or QGIS,
or GIMP - is it colour or greyscale? Maybe your input jpegs are
greyscale simply?
A note. In your:
r.in.gdalinput=image.jpg target=image.jgw
The "target=image.jgw" seems wrong. "target" is for GCP's, while
the .jgw files are simply world files for corresponding .jpg
(like .tfw for .tif).
Maciek
--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/