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 it applied when I set it via new MagickImage(filepath, settings).
Your second Class does seem more intuitive to me. With SetDefine you can set any name, so you have no way to verify that your name was valid; a Class like that would remove any confusion there and you'd be able to see exactly what settings you can use.
The images would probably be fine to post here but I've sent them to you directly just to play it safe.
Your second Class does seem more intuitive to me. With SetDefine you can set any name, so you have no way to verify that your name was valid; a Class like that would remove any confusion there and you'd be able to see exactly what settings you can use.
The images would probably be fine to post here but I've sent them to you directly just to play it safe.