IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

Generates a binary image with oriented lines. More...

IPSDKIPLUTILITY_API ipsdk::image::ImagePtr ipsdk::imaproc::util::buildLines2dImg (const ipsdk::ipUInt64 sizeX, const ipsdk::ipUInt64 sizeY, const ipsdk::ipReal32 theta, const ipsdk::ipReal32 offset)
 wrapper function for Generates a binary image with oriented lines More...
 
IPSDKIPLUTILITY_API void ipsdk::imaproc::util::buildLines2dImg (const ipsdk::ipReal32 theta, const ipsdk::ipReal32 offset, const image::ImagePtr &pOutBinImg)
 wrapper function for Generates a binary image with oriented lines More...
 

Detailed Description

Generates a binary image with oriented lines.

This algorithm generates an image of oriented lines with an angle theta, expressed in radians. One of the generated line is centered in the image and the other are shifted by a distance multiple of offset

Here is an example of generation of a 100x100 image with lines oriented with an angle of 20° and spaced by a step of 30 pixels.

buildLines2d.png

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InOutputImg2dSize [Input] output image 2d size X
ipsdk::imaproc::attr::InTheta [Input] 2d orientation for processing operation X
ipsdk::imaproc::attr::InOffset [Input] Offset. Used for instance by shading correction algorithm X
ipsdk::imaproc::attr::OutBinImg [Output] binary image for processing operation customOutput (_pOutBinImg, outputBuild2d(_pInOutputImg2dSize))

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::customImageProperty (_pOutBinImg,
 ipsdk::imaproc::util::matchROI2d (_pInOutputImg2dSize))

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLUtility as util

Code Example

outImg = util.buildLines2dImg(sizeX, sizeY, theta, offset)

Example of C++ code :

Example informations

Associated library

IPSDKIPLUtility

Header file

Code Example

// copy of image
ImagePtr pOutImg = buildLines2dImg(sizeX, sizeY, theta, offset);
See also
BuildLines2dImgLvl1
BuildLines2dImgLvl2
BuildLines2dImgLvl3

Function Documentation

◆ buildLines2dImg() [1/2]

IPSDKIPLUTILITY_API ipsdk::image::ImagePtr ipsdk::imaproc::util::buildLines2dImg ( const ipsdk::ipUInt64  sizeX,
const ipsdk::ipUInt64  sizeY,
const ipsdk::ipReal32  theta,
const ipsdk::ipReal32  offset 
)

wrapper function for Generates a binary image with oriented lines

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ buildLines2dImg() [2/2]

IPSDKIPLUTILITY_API void ipsdk::imaproc::util::buildLines2dImg ( const ipsdk::ipReal32  theta,
const ipsdk::ipReal32  offset,
const image::ImagePtr pOutBinImg 
)

wrapper function for Generates a binary image with oriented lines

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure