It might be compressed for transmission, but raw data (warts and all) is king .. once it's "processed" and raw data is discarded .. there's no recovering the raw.
Years later raw data can be reprocessed with new algorithms, faster processes and combined with other sources to create "better" processed images.
Onboard hardware errors (eg: the historic Hubble Telescope erros) can be "corrected" later on the ground with an elaborate backpropagated trandfer function that optimally "fixes" the error, etc.
Data errors (spikes in cell values, glitches from cosmic rays, etc) can be combed out of the raw in post .. if smart people have access to the raw.
Baking processing into on board instrument processing prior to transmission isn't a good procedure.