imagedatastore grayscale to rgb for maskRcnn

조회 수: 3 (최근 30일)
Odo Luo
Odo Luo 2022년 4월 11일
댓글: Odo Luo 2022년 4월 11일
  • I have several CT images : ct1, ct2, ct3.....
  • Each CT contains of aprox 90 2D grayscale images/planes
  • MaskRCnn Requires RGB Input
How do I looup through each CT and save each image within a CT as own image in the datastore?
I also need it as RGB image, where only one plane is set with the grayscale and the reast to 0 or 1.
Hope someone can help me!

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 4월 11일
편집: KALYAN ACHARJYA 2022년 4월 11일
You may convert the gray image to 3D array planes
rgb_gray=cat(3,gray_image,gray_image,gray_image);
Just do for one images, for all images can be done using call one individual images at a time using loop. There are so many simmilar threads are available.
  댓글 수: 1
Odo Luo
Odo Luo 2022년 4월 11일
Thank you for your help!
I am not sure about the looping. Can I do it somehow in the read function or do I have to do it from "outside" ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by