Ticket #3439 (new defect)

Opened 3 years ago

Last modified 3 years ago

Change the image format and color is not the same!

Reported by: bicealyh Owned by: warmerdam
Priority: normal Milestone: 1.8.1
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Hi,

I change the ESRI Image format image(.img) to GTiff format(*.tif) and use the polygon clip, the color is seem to not same with the source image.

By the way, I import the ESRI Image format image(.img) to Oracle Georaster,the color is not the same with source image.

So I want to ask how to avoid this problem. Is it the Bug?

Change History

Changed 3 years ago by rouault

There are unclear points to me in your report :

1) What is the "ESRI Image format image" in GDAL terminology ? Does it correspond to "ESRI .hdr Labelled" / EHdr driver ? -->  http://www.gdal.org/frmt_various.html#EHdr

2) How do you convert from ESRI Image format image(.img) to GTiff format(*.tif) ? With GDAL ?

3) Could you paste in the ticket the command line(s) you have used ?

4) Could you paste in the ticket the result of gdalinfo on the source and target files ?

5) Which GDAL version do you use ?

Changed 3 years ago by bicealyh

I sorry to give you a wrong message, the image format is Erdas IMAGINE image(*.img), it is HDF driver.

I just use such command like : gdal_translate.exe -o GTiff D:\source.img D:\dest.tif

I use the newest svn-trunk dll.

The image information like below: Driver: HFA/Erdas Imagine Images (.img) Size is 27091, 16481 Coordinate System is: GEOGCS["WGS 84"........["EPSG","4326"]] Origin = (112.5,37.8) Pixel Size = (0.000001818191605,-0.000001818191605) Corner Coordinates: ....................

Band 1 Block=64x64 Type=Byte, ColorInterp?=Undefined Description = Layer_1 ........... Band 2 Block=64x64 Type=Byte, ColorInterp?=Undefined Description = Layer_2 Min=0.000 Max=255.000 Minimum=0.000, Maximum=255.000, Mean=144.315, StdDev?=55.354 ...........

Band 3 Block=64x64 Type=Byte, ColorInterp?=Undefined Description = Layer_3 Min=0.000 Max=255.000 Minimum=0.000, Maximum=255.000, Mean=134.084, StdDev?=52.022 ...........

Note: See TracTickets for help on using tickets.