IPSDK 4.1.0.2
IPSDK : Image Processing Software Development Kit
Concatenation of 2 sequences
imageappendSeqImg (inImg1,inImg2)

Detailed Description

Algorithm allowing to concatenate two image sequences.

This algorithm allows to concatenate two image sequences.

Images must have same size in X, Y, Z, and C, and same color geometry type and volume geometry type.

Given two input images $ InImg1 $ and $ InImg2 $, output image values are given by :

\[ OutImg[x, y, z, c, t] = \begin{cases} InImg1[x, y, z, c, t] & \text { if } t < sizeT1 \\ InImg2[x, y, z, c, t-sizeT1] \text { otherwise} \end{cases} \]

and number of elements in sequence of $ OutImg $ equals to $ sizeT1+sizeT2 $, with sizeT1 the number of elements in sequence of $ InImg1 $ and sizeT2 the number of elements in sequence of $ InImg2 $

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLUtility as util

Code Example

# opening of input images
inImg1 = PyIPSDK.loadTiffImageFile(inputImg1Path, PyIPSDK.eTiffDirectoryMode.eTDM_Temporal)
inImg2 = PyIPSDK.loadTiffImageFile(inputImg2Path, PyIPSDK.eTiffDirectoryMode.eTDM_Temporal)
# concatenation of sequences
outImg = util.appendSeqImg(inImg1, inImg2)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLUtility/Processor/AppendSeqImg/AppendSeqImg.h>

Code Example

// opening input images
ImagePtr pInImg1 = loadTiffImageFile(inputImg1Path, eTiffDirectoryMode::eTDM_Temporal);
if(inImageBufferType != pInImg1->getBufferType())
pInImg1 = convertImg(pInImg1, inImageBufferType);
ImagePtr pInImg2 = loadTiffImageFile(inputImg2Path, eTiffDirectoryMode::eTDM_Temporal);
if(inImageBufferType != pInImg2->getBufferType())
pInImg2 = convertImg(pInImg2, inImageBufferType);
ImagePtr pAutoOutImg = appendSeqImg(pInImg1, pInImg2);