I have a RGB image and I would like to select the first n% of red, green and blue for gamma correction while leaving the other pixels unchanged.
How can I do it in ImageMagick with version 6.7.8-9 on Linux?
Partial gamma correction
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Partial gamma correction
I don't understand the question.
A required operation often breaks down into:
- what changes do I want?
- where do I want those changes?
A solution is to clone the input, apply the changes to that clone, then composite the clone over the original using a mask that is white where we want the changes and black where we don't.
For your problem, the mask might come from "select the first n% of red, green and blue" but I don't know what that means.
A required operation often breaks down into:
- what changes do I want?
- where do I want those changes?
A solution is to clone the input, apply the changes to that clone, then composite the clone over the original using a mask that is white where we want the changes and black where we don't.
For your problem, the mask might come from "select the first n% of red, green and blue" but I don't know what that means.
snibgo's IM pages: im.snibgo.com