| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Finding The Rgb Color Of An Image
#1
Posted 13 September 2008 - 01:37 PM
#2
Posted 13 September 2008 - 03:55 PM
Requires the GD Library, which is fairly standard for a PHP installation.
User Notes at that link include some scripts.
#5
Posted 08 October 2008 - 06:46 AM
Finding The Rgb Color Of An Image
Replying to nirmaldaniel
Dear Nirmaldaniel,
I read your reply on the C++ used for the color detection. If possible
Could be please send me the codes coz I am also looking for similar probelm.
Thank you..Please help me
Catherine
-question by Catherine
#6
Posted 13 December 2008 - 02:42 PM
Dear BrotherI want to take some information about the RGB file.How can I read the RGB file and also tell me how I create the new RGB file in C/ C++.I will thanks to you
-Muhammad Mohsan Shabbir
#7
Posted 07 January 2009 - 01:40 PM
I have below VB program which can segregate the are G B values and the same tries to recreate as the original file. Recreation is done using C++; if you want you can collect it from me.
Dim bmpObj As Object Set bmpObj = CreateObject("jpeg.CJpegImage") 'CALL COMImageSize (Me.ImgJPG.ScaleWidth, Me.ImgJPG.ScaleHeight) bmpObj.SetFormatSize Me.PicSourceImage.ScaleWidth, Me.PicSourceImage.ScaleHeight With picSourceImage For ctrY = 0 To Me.PicSourceImage.ScaleHeight - 1 For ctrX = 0 To Me.PicSourceImage.ScaleWidth - 1 Pixel = GetPixel(.HDC, ctrX, ctrY) myGRed(ctrX, ctrY) = RgbColor(Pixel).Red myGGreen(ctrX, ctrY) = RgbColor(Pixel).Green myGBlue(ctrX, ctrY) = RgbColor(Pixel).Blue bmpObj.SetJpegImageData myGRed(ctrX, ctrY), myGGreen(ctrX, ctrY), myGBlue(ctrX, ctrY) Next ctrX Next ctrY End With bmpObj.SaveJpegImage (App.Path & "ProcessedImage" & Left(Me.TxtFileName.Text, InStr(1, Me.TxtFileName.Text, ".") - 1) & ".Jpg")
-reply by Srinivasan#8
Posted 02 December 2009 - 07:57 AM
Replying to (G)SrinivasanI am doing this project actually showing a movie in opengl but I am using the green screen where I need to convert the rgb of the pictures to hsi in c++ and reverse. Can you help me?
-reply by pugsy
#9
Posted 08 December 2009 - 08:52 AM
#include <gdiplus.h>
...
Bitmap* bm = new Bitmap("image.jpg");
...
// bm->LockBits() or bm->GetPixel()
...
delete bm;
...
Edited by nooc9, 08 December 2009 - 08:53 AM.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















