Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Convert Image Type 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