-region and -channel option ? #776
-
Hi, I am trying to implement following commands in Magick.Net magick redeye1.jpg -region "36x36+120+150" -channel r -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" redeyecls.jpg But, I don't find 'region' or 'channel' methods in Magick.Net. Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The And with the following var readSettings = new MagickReadSettings
{
ExtractArea = new MagickGeometry(120, 150, 36, 36),
}; |
Beta Was this translation helpful? Give feedback.
The
-channel
is an extraChannel
argument to the methods so you will need to do thisimage.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: