К содержанию
РецензированоEN2025

DETERMINING IMAGE COLOR THROUGH MATRIX IN C++ PROGRAMMING LANGUAGE

Boritov MuzaffarMansurovich

Международный мультидисциплинарный журнал исследований и разработок · 12 · 2025

Аннотация

C++ programming in the language OpenCV library from the possibilities using graphics​ and the images analysis to doThis is used .in the thesis matrices through image colors determination about word​ is maintained . Key words: RGB, OpenCV, RGB, iostream, namespace, const. OpenCV (Open Source Computer Vision Library) is it computer see​ and images again work for intended free library . It is similar to C++, Python , and Java languages with It works . OpenCV image and videos again work , objects identify , face recognizing to take , image filtering and distance measurement​ such as tasks to do opportunity The library provides real - time work for optimized scientific​ ​ ​ projects ,robotics and artificial intellect in thefields wide isapplied . C++ programming in the language matrix through image color determination for the image matrix as seeing​ exit possible . In this process image pixels RGB (Red, Green, Blue) color values as is expressed . Every one pixel color to its RGB composition looking at is determined . Below simple exampleand OpenCVusing image colordetermination about information cited . SimpleRGB matrix through thecolortodetermine . Image matrix as is expressed as ,and every oneof theelement color analysis willbe done. #include ​ using namespace std ; intmain( ){ const introws =3,cols = 3; //RGB values with image matrix intimage[rows][cols ][3]={ {{255, 0,0}, {0, 255,0}, {0, 0,255}}, //Line 1 {{255, 255,0}, {0, 255,255}, {255, 0,255}}, //line2 {{128, 128,128}, {0, 0,0}, {255, 255,255}} //Line 3 }; intredCount =0,greenCount = 0,blueCount= 0; //Ranglarni aniqlash for(int i = 0;i green && red >blue)redCount++; // Qizilpiksel elseif(green >red && green > blue)greenCount++; //Yashil piksel elseif(blue >red && blue>green)blueCount++; //Ko‘kpiksel } } //Natijalarni chiqarish cout #include using namespace cv; using namespace std; intmain() { //Tasvirni yuklash Mat image = imread("image.jpg"); //"image.jpg" ni ishlayotgan papkaga joylashtiring if(image.empty()){ cout (i, j); //PikselningRGB qiymatlari intblue =pixel[0]; intgreen =pixel[1]; intred = pixel[2]; //Ranglarni aniqlash if(red >green && red >blue)redCount++; elseif(green >red && green > blue)greenCount++; elseif(blue >red && blue>green)blueCount++; } } //Natijalarni chiqarish cout << "Red" colored pixelcount :" << redCount << endl ; cout << "Green" colored pixel count :" << greenCount<< endl ; cout << "Ko'k rangli piksel soni: "<< blueCount <<endl; return 0; } RGB Matrix : Any one pixel red (R), green (G) and Blue (B) values range from 0–255 numbers with isexpressed . OpenCV : Image loading and pixels management for wide applicable​ library . Image files with to work makes iteasier . DLL and Libraries : OpenCV with work for relevant libraries installation​ and to your project connect need . References .​ 1. "C++ Primer" (Stanley B. Lippman, JoséeLajoie, Barbara E. Moo) 2. "Programming: Principles and Practice Using C++" (Bjarne Stroustrup) 389 INTERNATIONAL MULTIDISCIPLINARY JOURNAL FOR RESEARCH & DEVELOPMENT SJIF2019:5.2222020:5.5522021:5.6372022:5.4792023:6.5632024:7,805 eISSN:2394-6334 https://www.ijmrd.in/index.php/imjrd Volume12,issue05(2025) 3. "DataStructures and AlgorithmAnalysis in C++" (Mark Allen Weiss) 4. "Introduction to Algorithms" (Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest,Clifford Stein) 5. "Learning OpenCV 4: Computer Vision with Python and C++" (Adrian Kaehler, Gary Bradski) 6. "OpenCVBy Example" (Prateek Joshi) 390

Доказательный фрагмент

«C++ programming in the language OpenCV library from the possibilities using graphics​ and the images analysis to doThis is used .in the thesis matrices through image colors determination about word​ is maintained .»

Образец извлечения

Демо-превью

C++ programming in the language OpenCV library from the possibilities using graphics​ and the images analysis to doThis is used .in the thesis matrices through image colors determination about word​ is maintained . Полный текст публикации CiteX не хранит — доступ к первоисточнику открывается по DOI согласно лицензии издателя и выбранному плану.

DOI не указан
Цитирований
0
Просмотров
0
Тип
Журнал
Страна
Узбекистан
Ключевые слова
RGB, OpenCV, RGB, iostream, namespace, const
Спросить CiteX об этой работе

Смежные источники