Skip to content

-region and -channel option ? #776

Answered by dlemstra
liuhaitao827 asked this question in Help
Discussion options

You must be logged in to vote

The -channel is an extra Channel argument to the methods so you will need to do this image.Fx((hypot(abs(138-i),abs(168-j))<=18 && p.r/((p.g+p.b)/2)>1.5)?(p.g+p.b)/2:p.r", Channels.Red)

And with the following readSettings you can read only an area of the image:

var readSettings = new MagickReadSettings
{
    ExtractArea = new MagickGeometry(120, 150, 36, 36),
};

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liuhaitao827
Comment options

Answer selected by liuhaitao827
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants