IPSDK 4.2
IPSDK : Image Processing Software Development Kit
Merge 2D ROIs from a sequence image
imagemergeRoiSeq2dImg (inSeqImg,outputSizeX,outputSizeY,roiOffset)

Detailed Description

Merge the input sequence of ROIs image into a single image.

This algorithm merge the ROIs stored in the input sequence image.

The ROIs are described by their size. The offset parameter indicates the number of pixels separating two consecutive ROIs. If the offset is lower than the ROI size, the ROI overlap.

If the last ROI along a direction does not fit the image range, it is shifted so that each pixel in the ROI can be assigned to a value.

If the ROIs overlap, the values of each ROI associated to the same pixel are averaged.

Here is an example of merge with one row of ROIs for clarity:

mergeRoiSeq2dImg.png

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLUtility as util

Code Example

# Merge the ROIs
outImg = util.mergeRoiSeq2dImg(splitImg, sizeX, sizeY, roiOffset)

Example of C++ code :

Example informations

Header file

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

Code Example

// Merge the ROIs
ImagePtr pOutImg = mergeRoiSeq2dImg(pSplittedImg, sizeX, sizeY, roiOffset);