Opened 13 years ago
Closed 11 years ago
#4069 closed enhancement (duplicate)
[PATCH] Add ability to specify histogram bin function in HFA driver
Reported by: | Sam Gillingham | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | hfa |
Cc: |
Description
Attached patch adds metadata item "STATISTICS_HISTOBINFUNCTION" to set and get the Histogram bin function used in the HFA file. This always used to be set to "linear". However, applications may wish to specify a different histogram bin function as:
1) To be consistent with Imagine which always sets the histogram bin function to "direct" for 8 bit images and refuses to display raster attribute table if set to "linear". However, it uses "linear" for other data types.
2) Applications may wish to calculate the histogram using any of the methods supported by Imagine (direct, linear, logarithmic, explicit) and indicate this in the file.
Default type remains "linear" as this is still set when the node is created (hfaopen.cpp line 2710 in 1.8.0, line 2736 in -trunk) and is only changed if this metadata item is set.
Attachments (2)
Change History (4)
by , 13 years ago
Attachment: | hfaopen-binfn-1.8.0.cpp.patch added |
---|
comment:1 by , 13 years ago
Keywords: | hfa added |
---|---|
Summary: | Add ability to specify histogram bin function in HFA driver → [PATCH] Add ability to specify histogram bin function in HFA driver |
comment:2 by , 11 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Superseded by #5066. I believe this patch was superior since it allowed the application to specify the type, but both patches address the problem with opening a file in Imagine.
bin function metadata patch against -1.8.0