which type of image conversion have low occupy the CPU & Memory ? gray 2 Lab or ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
which type of image conversion have low occupy the CPU & Memory ? gray 2 Lab or ?
0 Kommentare
Antworten (1)
Image Analyst
am 20 Feb. 2024
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 Kommentare
Image Analyst
am 21 Feb. 2024
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?
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!