How to convert a multipage tif image in RGB into Grayscale

2 ビュー (過去 30 日間)
zy
zy 2014 年 6 月 26 日
コメント済み: zy 2014 年 6 月 26 日
Hi, I have a multipage tif image in RGB mode obtained from a video. Since the video is recorded in RGB mode,
I need to convert this multipage tif image from RGB into Grayscale. Can anyone help me ?
Thank you very much.

回答 (2 件)

Ben11
Ben11 2014 年 6 月 26 日
So you have one single RGB image? If so you can use
rgb2gray(Image)
to get the grayscale. Otherwise you can access individual channels with (:,:,Channel), which will be grayscale. Is that it?
  3 件のコメント
Ben11
Ben11 2014 年 6 月 26 日
Oh so am I. What if you open the image with ImageJ? What type of image does it say it is? Can you convert it to RGB color for instance?
zy
zy 2014 年 6 月 26 日
I opened the image using Image J. The information obtained by 'showinfor' indicates that it is "Bits per pixel: 8 (grayscale LUT)"
But the camera itself is 12 bit when taking the video.

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


Image Analyst
Image Analyst 2014 年 6 月 26 日
What output format do you want? An avi file (movie file)? I've not dealt with multipage tiff images before - is that what your video camera gave you?
  3 件のコメント
Image Analyst
Image Analyst 2014 年 6 月 26 日
Do you want single frames (one image per one TIFF file)? Or a multi-page TIFF (multiple images in a single TIFF file)?
zy
zy 2014 年 6 月 26 日
Yes, I know that I can get either single frame out of the video or multipage out of that video.
For me, either choice will be ok.
For multipage image file, I can load all frames of the image, and then average the intensity information over the number of frames.

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

カテゴリ

Help Center および File ExchangeCamera Calibration についてさらに検索

Translated by