【问题标题】:Mirror BGR (24 bit) image using Intel IPP使用英特尔 IPP 镜像 BGR(24 位)图像
【发布时间】:2014-07-27 12:31:52
【问题描述】:

我正在尝试使用以下代码镜像原始(无图像标题)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 = 宽度 = 640。 可能是什么问题?

【问题讨论】:

  • “可能是什么问题?”你没有说那个问题是什么。
  • @Jongware,你是对的,当然。没有检查确切的措辞就输入得太快了...感谢您的通知。

标签: c mirror intel-ipp bgr


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2012-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多