Effacer les filtres
Effacer les filtres

How to convert the obtained pixel value of an image to a 8 bit binary value?

1 vue (au cours des 30 derniers jours)
I have found the pixels of an image.But i don't know how to convert it to binary(8 bit).Can u please help me.

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Jan 2017
PixelsBinaryVector = reshape((dec2bin(PixelsArray, 8) - '0').', 1, [])

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by