Opened 19 years ago

Closed 9 years ago

#974 closed defect (fixed)

Imagine 8.4 Histogram Format

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: hfa histogram
Cc: Sam Gillingham, nflood

Description (last modified by warmerdam)

Imagine 8.4 seems to keep the histogram in "MIFObject" format, which means that gdalinfo does not properly report the metadata for histomin, histomax or histocount.

    HistogramParameters(Eimg_StatisticsParameters840) @ 1417 + 876 @ 1545
    + LayerNames = (no values)
    + ExcludedValues = 1x1 basedata of type 3
    + AOIname = 
    +     string = (no values)
    + SkipFactorX = 1
    + SkipFactorY = 1
    + BinFunction = 
    +     type = 
    +         string = `Edsc_BinFunction840'
    +     MIFDictionary =
`{0:pcstring,}Emif_String,{1:x{0:pcstring,}Emif_String,type,0:pcMIFDic
tionary,0:pCMIFObject,}Emif_MIFObject,{1:lstartBin,1:LbinCount,1:LorigBinCount,1:x{1:x{0:pcstrin
g,}Emif_String,type,0:pcMIFDictionary,0:pCMIFObject,}Emif_MIFObject,binFunction,1:x{0:pcstring,}
Emif_String,title,}Edsc_BinFunction840,.'
    +     MIFObject = `'

See zonegimg.img

Change History (8)

comment:4 by warmerdam, 17 years ago

Description: modified (diff)
Milestone: 1.4.2
Priority: highnormal
Status: newassigned

comment:5 by warmerdam, 17 years ago

Keywords: hfa histogram added
Milestone: 1.4.21.4.3

Put off till 1.4.3.

comment:6 by warmerdam, 17 years ago

Milestone: 1.4.31.5.0

This seems to be non-critical, moving to 1.5.0.

comment:7 by warmerdam, 16 years ago

Milestone: 1.5.01.6.0

exotic histogram reading is relatively low priority, deferred to 1.6.

comment:8 by warmerdam, 12 years ago

Milestone: 1.6.4

remove non-serious milestone.

comment:9 by Jukka Rahkonen, 9 years ago

Cc: Sam Gillingham nflood added

I believe that GDAL finds histograms from HFA but I don't have sample image which I can know to hold something called "histogram in "MIFObject" format". CC gillins, you must know because you have made such advanced patches lately. And nflood as well. Can I close this ancient ticket?

in reply to:  9 comment:10 by nflood, 9 years ago

Replying to jratike80:

I believe that GDAL finds histograms from HFA but I don't have sample image which I can know to hold something called "histogram in "MIFObject" format". CC gillins, you must know because you have made such advanced patches lately. And nflood as well. Can I close this ancient ticket?

Yes, I would say you can close the ticket. If the original problem was that gdalinfo did not report the histomin, etc. for HFA files, it certainly does that now. They are reported via special band metadata fields. GDAL certainly access to these values for HFA. See hfaopen.cpp:HFASetMetadata(), after the comment "Special case to write out the histogram." for example of the complexity of the HFA format representation.

comment:11 by Jukka Rahkonen, 9 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.