Different result between Magick.NET and ImageMagick #2095
Unanswered
CrispyDrone
asked this question in
Help
Replies: 1 comment
|
You should use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to remove table borders from a
.pngfile. This works through ImageMagick with the following command:magick <in.png> -type Grayscale -negate -define morphology:compose=darken -morphology Thinning 'Rectangle:1x80+0+0<' -negate <out.png>When I try to translate this to C# using Magick.NET, small segments of the table borders remain. I'm not sure what I'm missing. Specifically, the
-define morphology:compose=darkendoesn't seem to work in code despite trying various things, and it seems that this option is the one that ensures the results are different and not ideal when using Magick.NET.I've experimented with: setting
Compose; usingSetArtifact; usingSetDefine; playing around with the KernelArguments and UserKernel; using ColorType.Grayscale versus Grayscale as an operation; and various combinations of these.Thanks!
All reactions