1

I've been under the impression that calculating or recalculating statistics in ERDAS doesn't actually modify an image, but I notice when I do this that when I look at the image file in windows explorer, it says the image was modified when I calculated the statistics. Does calculating statistics actually change the image values in any way?

The files I've been using have been mostly tiffs, but I think it does the same for .imgs too.

2
  • 1
    What's the image format, .img? Could the modification occur be because the statistics are stored within the file? (I don't actually know, just speculating)
    – mkennedy
    Commented Jan 9, 2015 at 23:15
  • Sounds like that's the case but I the files in question were actually tiffs. I assume it would be the same for tiffs?
    – Jenni
    Commented Jan 12, 2015 at 18:47

1 Answer 1

1

Though I can't find any definitive reference at the moment, from all appearances, the file is modified because the statistics are actually stored within it. I doubt that calculating statistics would change image values. Saving statistics in the file is likely just a convenience to provide faster access next time they are needed.

This link from GDAL, for example, shows an option for generating stats when creating an .img file:

STATISTICS=YES : To generate statistics and a histogram. Default=NO

This link gives additional information:

ERDAS IMAGINE uses .img files to store raster data. These files use the ERDAS IMAGINE Hierarchical File Format (HFA) structure. Figure 1, below, shows the different objects of data stored in a .img file. The contents of the .img file is not fixed. Many of the items shown below are optional.

Here is the referenced image showing the file structure where you can see one of the objects is named "Statistics" enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.