Advertisement

Stretched result on sobelx filter

Started by May 27, 2018 11:17 AM
1 comment, last by irreversible 6 years, 8 months ago

Could anyone please shed some lights on this? I am not sure why the output of my own home-brewed sobelx filter got this stretched result...

I am assuming each kernel iteration returns one pixel, which means in a kernel of 3x3...anyways, why skipped?

The first is the ground fact, the second is the output.

 

Tex_0046_0.jpg

Result.bmp

Result.jpg

Your output looks like a multiple of the original output in some form - the basic structure is there, but the image appears to be offset and banded for whatever reason. Are you running your filter in non-RGB mode (eg not per channel)?

You really should post some code, and not only the filter but more likely the calling loop and how you output the resulting image. Have you tried a pass thru filter - eg are you getting exactly the same output as the input when no filter is applied? There are so many links here that could be wrong that I wouldn't be surprised if your filter was working properly.

Oh and one more thing - have you accounted for a possible alpha channel?

This topic is closed to new replies.

Advertisement