Opened 14 years ago

Closed 9 years ago

#3439 closed defect (wontfix)

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 (4)

comment:1 by Even Rouault, 14 years ago

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 ?

comment:2 by bicealyh, 14 years ago

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 ...........

comment:3 by Jukka Rahkonen, 10 years ago

Needs sample data or nothing can be done with the ticket. My wild guess is that the default behaviour of ERDAS Imagine viewer to introduce an automatic LUT stretch based on the image histograms is changing the colours. Clipped image -> different histogram -> different colours on viewer, but in in the image data.

Suggestion: If nothing new will be heard, close as invalid.

comment:4 by Jukka Rahkonen, 9 years ago

Resolution: wontfix
Status: newclosed

Without sample data can't be confirmed as a bug and even less can be fixed.

Note: See TracTickets for help on using tickets.