0

我正在尝试使用以下代码镜像原始(无图像标题)BGR 图像,每像素 8 位:

void mirrorBGR(byte* src, byte* dst, UINT width, UINT height, UINT pitch_s, UINT pitch_d)
    {
        IppiSize size;
        size.width = width;
        size.height = height;
        IppStatus status = ippiMirror_8u_C3R(src, pitch_s, dst ,pitch_d, size, ippAxsVertical);
        if (status != ippStsNoErr)
        {
            printf("Mirror RGB24 failed: %d",status);
        }
    }

图像尺寸为 640x360。pitch_s = pitch_d = width = 640。可能是什么问题?

4

1 回答 1

0

间距是源和目标位图的扫描线长度。

如果不使用填充,则至少应为 640(宽度)* 3(每像素字节数)= 1920

于 2014-07-27T12:43:05.367 回答