How can i convert set of images from RGB to Lab using matlab?

5 Ansichten (letzte 30 Tage)
ahmad Al sarairah
ahmad Al sarairah am 20 Jan. 2020
Kommentiert: KALYAN ACHARJYA am 22 Aug. 2020
I have a set of images and I want to convert them from RGB to Lab , then i want to access and save L ,a,b values for each images .

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 20 Jan. 2020
Bearbeitet: KALYAN ACHARJYA am 20 Jan. 2020
Read images from folder FAQ here
Before apply the code read here Representing color with the Lab color space
image_data= % Read the images form directory
for i=1:length(image_data)
% Read RGB Images
im_read=.....
lab_image=rgb2lab(im_read);
%save the lab image
end
  15 Kommentare
Keerthi  D
Keerthi D am 22 Aug. 2020
I have a set of tomato diseased leaf images and I want to convert them from RGB to Lab , then i want to access and save a,b values for each images .how to do?
KALYAN ACHARJYA
KALYAN ACHARJYA am 22 Aug. 2020
  1. Call the invividual image one by one
2. Convert RGB2 LAB
rgb2lab
3. Save the image or save in cell array (If it required in the next section of the code)
Regards
Kalyan

Melden Sie sich an, um zu kommentieren.

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!

Translated by