IPSDK 0.2
IPSDK : Image Processing Software Development Kit
imagebuildLines2dImg (sizeX,sizeY,theta,offset)

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

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

Header file

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

Code Example

// copy of image
ImagePtr pOutImg = buildLines2dImg(sizeX, sizeY, theta, offset);