which type of image conversion have low occupy the CPU & Memory ? gray 2 Lab or ?

1 回表示 (過去 30 日間)
Selva Karna
Selva Karna 2024 年 2 月 20 日
コメント済み: Image Analyst 2024 年 2 月 21 日
which type of image conversion have low occupy the CPU & Memory ? gray 2 Lab or ?

回答 (1 件)

Image Analyst
Image Analyst 2024 年 2 月 20 日
Not sure why you're asking. How big are your images? For normal sized images I wouldn't worry about it. I'd just use rgb2lab to convert RGB images into LAB images. For a gray image there is no A and B image and the L image is the same as the gray image.
  2 件のコメント
Selva Karna
Selva Karna 2024 年 2 月 21 日
Hi Image Analyst ,
Thank you for answering, My Question : which image conversion from gray to Color conversion have taken low CPU usage ?
Image Analyst
Image Analyst 2024 年 2 月 21 日
To turn a gray scale image into a color RGB image you can use
rgbImage = cat(3, grayImage, grayImage, grayImage);
or, if you have a colormap you can use ind2rgb
rgbImage = ind2rgb(grayImage, yourColorMap);
What is your concern about low CPU usage?

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

カテゴリ

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

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by