获取像素的RGB或HSL值-C ++

时间:2019-12-04 07:04:56

标签: c++ image image-processing

我有以下代码遍历图像的每个像素。我将需要获取每个像素的RGB值甚至更好的HSL值。问题是我需要在不使用外部库(例如OpenCV)的情况下执行此操作...以前从未用c ++编写过代码,所以我现在很迷路。任何帮助表示赞赏。

IMAGE *ptrImageData = ptrProcUnit->GetMeasureImage(0);                

int width = ptrImageData->sizeX;
int height = ptrImageData->sizeY;

for (int i = 0; i < width; i++)
{
    for (int j = 0; j < height; j++)
    {

    }
}

0 个答案:

没有答案