Effacer les filtres
Effacer les filtres

neighbour pixel operation

1 vue (au cours des 30 derniers jours)
javeed miyandad
javeed miyandad le 9 Avr 2011
sir i have a white and black (binary)image of size (1024X768).i need image to be scanned from left to right, up and down and the scan area is 3X3.if one of 8-neighbour pixel is white (255).then center point should becomes white (255). sir please help in coding

Réponse acceptée

Walter Roberson
Walter Roberson le 9 Avr 2011
blkproc or blockproc. Once you are within an individual 3x3 block, say B, then B(2,2) = max(B(2,2),255 * any(B(:)==255))
  1 commentaire
javeed miyandad
javeed miyandad le 9 Avr 2011
i= binary image blkproc(I,[3 3]; B(2,2) = max(B(2,2),255 * any(B(:)==255)); i am not geting sir plz help me

Connectez-vous pour commenter.

Plus de réponses (1)

javeed miyandad
javeed miyandad le 9 Avr 2011
i= binary image blkproc(I,[3 3]; B(2,2) = max(B(2,2),255 * any(B(:)==255)); i am not geting sir plz help me

Catégories

En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by