This project has moved and is read-only. For the latest updates, please go here.

AutoLevel and AutoGamma doesn't cause any result

Nov 19, 2013 at 5:52 PM
I'm trying to apply AutoLevel and AutoGamma, but the result image is the original unchanged.
private void AutoEnhance() {
    this.magickImage.AutoLevel();
    this.magickImage.Write(this.temporaryFile);
    this.DisplayImage(this.temporaryFile);
}
Nov 19, 2013 at 6:22 PM
Can you post a link to the image you are using? Feel free to contact me through codeplex if you don't feel like posting your image here.
Nov 19, 2013 at 6:35 PM
Nov 19, 2013 at 8:54 PM
What is the result you are expecting? AutoLevel stretches your image to the minimum and maximum of the QuantumRange (0-255 / 0-65535). Your image is already at the minimum and maximum, so it will not be changed.

AutoGamma does change your image but the difference is hardly noticeable:
C:\Test>compare -metric rmse fusca.png fusca2.png null:
232.336 (0.00354522)
Nov 19, 2013 at 8:59 PM
I'm trying to get something close to an autoenhance.
Nov 19, 2013 at 10:45 PM
Are you talking about this option: http://www.imagemagick.org/script/command-line-options.php#enhance? It seems I forgot to add it to Magick.NET. You can check the result like this:
C:\Test>convert fusca.png -enhance fusca2.png

C:\Test>compare -metric rmse fusca.png fusca2.png null:
719.341 (0.0109764)
Nov 20, 2013 at 7:46 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.