Transform which selects similarly colored regions?

asked 2013-06-07 03:31:57 -0600

Dims gravatar image

updated 2013-06-07 03:50:35 -0600

Is there any transform, which "looks" at any region of a picture and then compares it with neighbor region, and if two regions are similarly colored, then unifies two regions in one and colors it with average color.

Finally, this transform will distinguish "paper" from "writing" on it.

It will color with constant value any gradient fields or dimmed pictures, while remain uncolored any area with frequently changed colors, like in writings.

Key idea is that this transform should allow any big color change if it is gradual.

Example:

image description

So, this filter should be something opposite to finding edges.

edit retag flag offensive close merge delete

Comments

It's really hard to understand what you want. Can you add an example input image and ideally the expected result?

Ben gravatar imageBen ( 2013-06-07 03:47:40 -0600 )edit

See my update.

Dims gravatar imageDims ( 2013-06-07 03:51:51 -0600 )edit

And what should the output for http://img81.imageshack.us/img81/8066/cgradient42cs.jpg look like?

Ben gravatar imageBen ( 2013-06-07 04:04:45 -0600 )edit