missedthepit 0 Newbie Poster

I'm trying to run a distance transform on a thresholded binary image in c with OpenCV in order to assist anomaly detection (my hope is that I can detect large changes around the edges of the object), however for some reason, upon running my Distance Transform script, I'm getting a strange banding type of effect. I tested something similar in the Distance Transform demo script in the samples directory, with the same results. One possible reason I came up with was that the distance was going beyond the 0-255 scale and therefore essentially being modulus'ed to keep it within the boundaries. Has anyone had any experience with this that could advise? I have posted images and code on my blog if that helps.
Thanks in advance, Ian

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.