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 件のコメント
KSSV
KSSV 2021 年 1 月 17 日
Already your images are in gray scale right? What exactly you expect?
Abdul Gaffar
Abdul Gaffar 2021 年 1 月 17 日
I have updated the images. Now, these are in Binary.

サインインしてコメントする。

回答 (2 件)

KSSV
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{:}) ;

Image Analyst
Image Analyst 2021 年 1 月 17 日
Use bitset(). If you can't figure it out, write back. Some demos to help are attached.

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by