Tilt image in c#
Posted: 2017-01-25T07:47:44-07:00
Hi, c#
Your code from http://www.imagemagick.org/Usage/photos/#tilt_shift
how to translate to c#?
convert beijing_md.jpg -sigmoidal-contrast 15x30% \
\( +clone -sparse-color Barycentric '0,0 black 0,%h gray80' \
-solarize 50% -level 50%,0 \) \
-compose Blur -set option:compose:args 10 -composite \
beijing_model.jpg
but I cant create all
1]
var sharpen = 15;
tilt.SigmoidalContrast(true, Math.Abs(sharpen), 30);
List<SparseColorArg> args = new List<SparseColorArg>();
args.Add(new SparseColorArg(0, 0, new MagickColor("white")));
args.Add(new SparseColorArg(0, image.Height/4, new MagickColor("black")));
tilt.SparseColor(SparseColorMethod.Barycentric, args);
this gives me half of background image -> blurmap http://www.imagemagick.org/Usage/photos ... map_tn.gif
2]
how to translate
-set option:compose:args 10
best regards
ala
Your code from http://www.imagemagick.org/Usage/photos/#tilt_shift
how to translate to c#?
convert beijing_md.jpg -sigmoidal-contrast 15x30% \
\( +clone -sparse-color Barycentric '0,0 black 0,%h gray80' \
-solarize 50% -level 50%,0 \) \
-compose Blur -set option:compose:args 10 -composite \
beijing_model.jpg
but I cant create all
1]
var sharpen = 15;
tilt.SigmoidalContrast(true, Math.Abs(sharpen), 30);
List<SparseColorArg> args = new List<SparseColorArg>();
args.Add(new SparseColorArg(0, 0, new MagickColor("white")));
args.Add(new SparseColorArg(0, image.Height/4, new MagickColor("black")));
tilt.SparseColor(SparseColorMethod.Barycentric, args);
this gives me half of background image -> blurmap http://www.imagemagick.org/Usage/photos ... map_tn.gif
2]
how to translate
-set option:compose:args 10
best regards
ala