How to get binary data from RGB images

8 Ansichten (letzte 30 Tage)
olivio gusmao
olivio gusmao am 18 Mai 2020
Kommentiert: olivio gusmao am 19 Mai 2020
how to get biner data if we have code like this :
what code should add so that it can get binary data from RGB ?
uint8Image = 255 * uint8('handles.image');
% binaryImage is your segmented image.
% Get base file name. Discard any extension they may have entered, like jpg.
[f, baseFileNameNoExt, ext] = fileparts(nama_file_simpan);
% Construct full file name.
fullFileName = fullfile(path_simpan, [baseFileNameNoExt, '.png']);
% NEVER use jpg for image analysis. Use PNG.
% Now do the actual save of the segmented image to disk as a PNG format image.
save('uint8Image', 'fullFileName');
  3 Kommentare
Rik
Rik am 18 Mai 2020
Also, if you directly take code from another post, please link to it. And don't edit code you don't understand.
olivio gusmao
olivio gusmao am 19 Mai 2020
okay i get it .thank u

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by