IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

Algorithm allowing to copy an image. More...

IPSDKIPLUTILITY_API image::ImagePtr ipsdk::imaproc::util::copyImg (const image::ImageConstPtr &pInImg)
 wrapper function for image copy algorithm More...
 
IPSDKIPLUTILITY_API void ipsdk::imaproc::util::copyImg (const image::ImageConstPtr &pInImg, const image::ImagePtr &pOutImg)
 wrapper function for image copy algorithm More...
 

Detailed Description

Algorithm allowing to copy an image.

This algorithm allows to copy an image.
Output image type and size is the same as input.
On output image value are given by :

\[ OutImg[i] = InImg[i] \]

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InImg [Input] image for processing operation X
ipsdk::imaproc::attr::OutImg [Output] image for processing operation ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg)

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutImg)

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLUtility as util

Code Example

# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# image copy
outImg = util.copyImg(inImg)

Example of C++ code :

Example informations

Associated library

IPSDKIPLUtility

Header file

Code Example

// opening input image
ImageGeometryPtr pImageGeometry = geometry2d(imageBufferType, sizeX, sizeY);
ImagePtr pInImg = loadRawImageFile(inputImgPath, *pImageGeometry);
// copy of image
ImagePtr pOutImg = copyImg(pInImg);
See also
CopyImgLvl1
CopyImgLvl2
CopyImgLvl3

Function Documentation

◆ copyImg() [1/2]

IPSDKIPLUTILITY_API image::ImagePtr ipsdk::imaproc::util::copyImg ( const image::ImageConstPtr pInImg)

wrapper function for image copy algorithm

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ copyImg() [2/2]

IPSDKIPLUTILITY_API void ipsdk::imaproc::util::copyImg ( const image::ImageConstPtr pInImg,
const image::ImagePtr pOutImg 
)

wrapper function for image copy algorithm

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure