필터 지우기
필터 지우기

How to save set of images as logical images (0 and 1)

조회 수: 2 (최근 30일)
Eberechi ICHI
Eberechi ICHI 2022년 10월 18일
답변: KSSV 2022년 10월 19일
Image_Blocks is a 1x663 structure array with 32x32 image blocks and in logical format (0 and 1).
I want to save the output as logical image but the code output keeps giving me the images in 0-255 (8bits).
Kindly assist.
Thanks
for Block_Index = 1: length(Image_Blocks)
imwrite(Image_Blocks(Block_Index).Blocks,fullfile(path1, File_Prefix + "_" + num2str(Block_Index) + ".jpg"));
end

채택된 답변

KSSV
KSSV 2022년 10월 19일
Try converiting logicals into double using double.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by