Borrar filtros
Borrar filtros

Similarity level of the pixel

1 visualización (últimos 30 días)
Nataliya
Nataliya el 14 de Ag. de 2015
Respondida: Image Analyst el 14 de Ag. de 2015
Hi, I want to compute the similarity of the pixel with its neighbors. Basically what I want is to assign more weights to the pixels that are similar to its neighboring pixels and less weight to pixels that are dissimilar. Is there any feature or some method that will do this. Kindly suggest. Thanks

Respuesta aceptada

Image Analyst
Image Analyst el 14 de Ag. de 2015
How about scanning with a 3x3 window and computing the standard deviation - that will be 0 if all the pixels are the same and high if they're different. Then subtract that from 255
out = 255 - stdfilt(grayImage);

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by