How to convert 8 Binary images of size 256 x 256 into a Grayscale image of same size, i.e., 256 x 256?
조회 수: 2 (최근 30일)
이전 댓글 표시
Suppose, I have 8 Binary images of same size. Then, I want to combine binary bits of all 8 images pixel-wise to form 'a' 8-bit depth Grayscale image of size, same as Binary images.
The images are attached herewith in 'zip folder'.
댓글 수: 2
답변 (2개)
KSSV
2021년 1월 17일
images = dir('*.tiff');
N = length(images) ;
iwant = cell(N,1) ;
for i = 1:N
iwant{i} = imread(images(i).name) ;
end
I = cat(3,iwant{:}) ;
댓글 수: 0
Image Analyst
2021년 1월 17일
Use bitset(). If you can't figure it out, write back. Some demos to help are attached.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!