Contrast Enhancement

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
gowribala
Posts: 14
Joined: 2013-06-03T02:43:37-07:00
Authentication code: 6789

Contrast Enhancement

Post by gowribala »

Hai..

To clearly view the shapes and sudden intensity change ,I need to improve the contrast in my processing image.

For contrast enhancement i have used Histogram Equalization.But i didn't get expected output.

please guide me how to achieve contrast enhancement.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Contrast Enhancement

Post by snibgo »

Increasing contrast somewhere will always reduce it somewhere else.

Can you put up your image and explain what you want?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Contrast Enhancement

Post by fmw42 »

In IM, you have two modes of operation for histogram equalization using -equalize

If you want to equalize all channels together then,

convert image -equalize result

If you want to equalize each channel separately then,

convert image -channel rgb -equalize result


But as snibgo said, it is always best to provide examples of what you want to do and a clear explanation of the problem along with identifying your version of IM and platform.

see viewtopic.php?f=1&t=9620
Post Reply