3. Extracting RGB data
First RGB image is converted to grayscale image by
eliminating the hue and saturation information while
retaining the luminance by syntax”rgb2gyay”.If the image is
gray scaled image than from the grayscale image it‟s required
to extract the red, green and blue components in the image by
following syntax
R = imsubtract(data(:,:,1), rgb2gray(data));
G = imsubtract(data(:,:,2), rgb2gray(data));
B= imsubtract (data (:,:,3), rgb2gray(data));
Here since we have taken red, green and yellow capsicum for
our experiment, so extraction of yellow color is also required,
for that we have taken the snapshot of yellow colored
capsicum and in its matlab image via use of data curser we
found the nature of primary color R, G, B that they are of
increasing nature or decreasing nature.
3. แยกข้อมูล RGBรูปแรก RGB จะถูกแปลงเป็นภาพสีเทาโดยกำจัดข้อมูลสีและความอิ่มตัวในขณะที่รักษาความสว่าง โดยไวยากรณ์ "rgb2gyay" ถ้ามีรูปสีเทาปรับภาพกว่าจาก it‟s ภาพสีเทาที่จำเป็นการแยกส่วนประกอบสีแดง สีเขียว และสีน้ำเงินในภาพโดยไวยากรณ์ต่อไปนี้R = imsubtract(data(:,:,1), rgb2gray(data))G = imsubtract(data(:,:,2), rgb2gray(data))B = imsubtract (ข้อมูล (:,:, 3), rgb2gray(data))ที่นี่เนื่องจากเราได้นำพริกหวานสีแดง สีเขียว และสีเหลืองสำหรับทดลองของเรา ดังนั้นการสกัดสีเหลืองยังจำเป็นที่เราได้นำภาพรวมของสีเหลืองสีพริกหวานและ ใน matlab ของภาพผ่านการใช้ curser ข้อมูลเราพบธรรมชาติของสีหลัก R, G, B ที่พวกเขามีธรรมชาติที่เพิ่มขึ้น หรือลดลงธรรมชาติ
การแปล กรุณารอสักครู่..

3 . การสกัดข้อมูล RGBภาพแรกสี RGB จะถูกแปลงเป็นระดับสีเทาภาพโดยการขจัดสีและความอิ่มตัวข้อมูลในขณะที่รักษาความสว่างโดยการ " rgb2gyay " ถ้าภาพเป็นสีเทาขนาดภาพกว่าจากระดับสีเทาภาพมัน‟ s ที่จําเป็นสกัดสีแดง สีเขียว สีน้ำเงิน และ องค์ประกอบภาพโดยไวยากรณ์ต่อไปนี้R = imsubtract ( ข้อมูล ( : , : , 1 ) , rgb2gray ( ข้อมูล ) )g = imsubtract ( ข้อมูล : : : : 2 ) , rgb2gray ( ข้อมูล ) )B = imsubtract ( ข้อมูล : : : : 3 ) , rgb2gray ( ข้อมูล ) )ที่นี่เราได้สีแดง พริกหวานสีเขียวและสีเหลืองการทดลองของเรา ดังนั้นการสกัดสีเหลือง คือ ยังต้องเพราะเราต้องเอาภาพรวมของสีเหลืองพริกหวานและภาพผ่านทางโปรแกรมใช้ curser ข้อมูลเราพบลักษณะของหลักสี R , G , B ที่พวกเขามีการเพิ่มหรือลดธรรมชาติธรรมชาติ
การแปล กรุณารอสักครู่..
