New Post: Connected Components area threshold
It's a bit strange, when I use the method your way (which I initially tried) I was able to perform call ConnectedComponents(4) and get the image, but the area threshold wouldn't be applied. I only have...
View ArticleNew Post: Connected Components area threshold
I got your e-mail, will take a look at it tomorrow. I just realized that my first example would not work. You will need to call image.SetArtifact instead. And looking at the code I decided to add the...
View ArticleNew Post: Connected Components area threshold
Hi dlemstra,Thanks for your help. I really appreciate you doing this. The project is getting urgent but I can use my work-arounds for now and I wouldn't want you to go out of your way for me.I'll...
View ArticleNew Post: Connected Components area threshold
It turns out that my implementation of getting the components did not have the correct implementation. I just publish a new version of Magick.NET to resolve this. This new version also includes the new...
View ArticleNew Post: Connected Components area threshold
Hi dlemstra, I'm happy to report that the software now works exactly as planned. This extends to both the image.SetArtifact and ConnectedComponentsSettings approaches. Thankyou very much for your help!
View ArticleNew Post: Connected Components area threshold
Now that I've tested for the day, I've found something that might still be off. I've found I'm getting ImageMagick.MagickResourceLimitErrorException on my call to image.ConnectedComponents(settings)....
View ArticleNew Post: Connected Components area threshold
You are most likely getting this error because you are running out of memory. Do you see the memory increase while your program is running? It is possible that ImageMagick/Magick.NET is leaking memory....
View ArticleNew Post: Removing white from image with white background where gradients are...
I'm working with images that were created as monochrome TIFFs (colour separations) where I need to convert them to PNGs with a transparent background, removing all the white. The problem is, the images...
View ArticleNew Post: Removing white from image with white background where gradients are...
I saw that you also asked your question here: https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=30369. Do you need help translating this to Magick.NET?
View ArticleNew Post: Removing white from image with white background where gradients are...
Thanks, yes please that would be great. So for reference the IM command that was provided on that forum: convert {input file path} -profile sRGB.icc +strip -negate -alpha copy -fill black -colorize 100...
View ArticleNew Post: Removing white from image with white background where gradients are...
That command would translate to this:using (MagickImage image = new MagickImage("{input file path}")) { image.AddProfile(ColorProfile.SRGB); image.Strip(); image.Negate();...
View ArticleNew Post: Removing white from image with white background where gradients are...
Hi, thank you very much for the help - it does seem to produce the same result as the plain IM command. What do you think is working differently? I did notice that some of the areas that were meant to...
View ArticleNew Post: Removing white from image with white background where gradients are...
Its the same as the IM command. But it looks a bit different from your desired result in your first post. Just wanted to check if this was the result that you were looking for.
View ArticleNew Post: Removing white from image with white background where gradients are...
OK thanks. There was one more thing I was struggling with if you are able to help: I am trying now to adjust the colour of the fill that is applied, so instead of using black, I can define a custom...
View ArticleNew Post: Removing white from image with white background where gradients are...
Are you sure you are passing in the correct values? image.Colorize(MagickColors.Fuchsia, new Percentage(100)); is giving me a correct result. Are you aware that you need to use the full range of the...
View ArticleNew Post: Removing white from image with white background where gradients are...
Sorry, you are exactly right. I was trying to pass it values 0-255 not the full ushort range. Amended and works perfectly. Thank you!!
View ArticleNew Post: Cancel image writing
It works perfectly fine, thanks a lot for your software and help!
View ArticleNew Post: Cancel image writing
You're welcome and thanks for coming back to report that it works :)
View ArticleNew Post: Connected Components area threshold
Hi dlemstra, I'll create a sample program when I get the chance. The memory is definitely increasing while the program runs. I can confirm, via process of elimination, that the memory leak is connected...
View ArticleNew Post: Connected Components area threshold
Thank you so much for this program. It made it really easy to track down the issue. It turns out that the ImageMagick code of ConnectedComponents forgets to decrement a reference counter. When you...
View Article