IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Hough spheres label 3d imageSee full documentation
imagehoughSpheres3dLabelImg (spheresPpties,inImg)
imagehoughSpheres3dLabelImg (pISpheresPpties,inImg)

Detailed Description

Creates a label image from 3D spheres detected with te 3D Hough detection algorithm.

This algorithms creates a label image representing the spheres detected by the result of Hough spheres detection. In the case of automatically allocated output image, IPSDK needs to know the size of the ouput image and the image used to calculate the spheres properties in Hough spheres detection must also be specified.

If two spheres intersect each other, the label calculated accoring to the interface between the two spheres.

The output image voxels intensities are SphereIndex + 1 for voxels inside the sphere and 0 otherwise, where SphereIndex is the sphere index in the result of Hough spheres detection.

Here is a slice of an image and the result of the algorithm application :

houghSpheres3dLabelImg.png

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLFeatureDetection as fd

Code Example

# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# radius range detection definition
radiusRange = PyIPSDK.createHoughCirclesRadiusRange(8, 12)
# hough circle detection computation
outSpheres = fd.houghSpheres3d(inImg, radiusRange)
# compute the label image
outImg = fd.houghSpheres3dLabelImg(outSpheres, inImg)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLFeatureDetection/Processor/HoughSpheres3dLabelImg/HoughSpheres3dLabelImg.h>

Code Example

// Load the input image
ImagePtr pInImg = loadTiffImageFile(inputPath);
// Detect the spheres
HoughSpheres3dPptiesPtr pSpheres = houghSpheres3d(pInImg, pHoughRange);
ImagePtr pOutImg = houghSpheres3dLabelImg(pSpheres, pInImg);