Automatic selection of image compression parameters with losses based on invariant moments for Earth remote sensing purposes