How to match histogram (convert command)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lttq
Posts: 7
Joined: 2012-06-30T04:25:00-07:00
Authentication code: 13

How to match histogram (convert command)

Post by lttq »

Hello

I want to change color style of a photo by using color style of other photo.So,I think about histogram matching method.I know that IM provide option -equalize for histogram equalization,but no option for histogram specification or histogram matching.

What will I do to match 2 histograms of photo ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to match histogram (convert command)

Post by fmw42 »

If you are on unix, or Windows w/Cygwin, you can use my histmatch script at the link below.
lttq
Posts: 7
Joined: 2012-06-30T04:25:00-07:00
Authentication code: 13

Re: How to match histogram (convert command)

Post by lttq »

I want to config source of IM and add new option -hismatch to convert command and recompile source.Can you tell me what I will do ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to match histogram (convert command)

Post by fmw42 »

Sorry, but histmatch is a bash shell script that makes calls to IM. It is not built into IM.

If you want to code that up in IM, please post to the Developers forum and inquire what would be needed. I do not code, just do bash shell script for image processing with IM

Fred
lttq
Posts: 7
Joined: 2012-06-30T04:25:00-07:00
Authentication code: 13

Re: How to match histogram (convert command)

Post by lttq »

Thanks , Fred
Post Reply