Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

resizing an image by duplicating pixels

Amichai_G_
Beginner
97 Views

Hi

 

I want to resize an image in a particular way that duplicates a pixel vertically and horizontally. For example

source image                       destination image

    1   2                                    1   1   2   2

    3   4                                    1   1   2   2

                                              3   3   4   4

                                              3   3   4   4

Is there an IPP function that can do this?

Thanks

 

    

 

 

 

 

0 Kudos
1 Reply
Ying_H_Intel
Employee
97 Views

Hi 

How about to use  ippiResizeNearest with NN interpolation directly? 

Changes an image size using the nearest neighbor
interpolation method.
12 Intel® Integrated Performance Primitives Reference Manual, Volume 2: Image and Video Processing

IppStatus ippiResizeNearest_<mod>(const Ipp<datatype>* pSrc, Ipp32s srcStep,
Ipp<datatype>* pDst, Ipp32s dstStep, IppiPoint dstOffset, IppiSize dstSize, const
IppiResizeSpec_32f* pSpec, Ipp8u* pBuffer);

and you can find ipp resize sample in IPP install folder.. 

Best Regards,

Ying

Reply