image = | l2Norm3Img (inImg1,inImg2,inImg3) |
Computation of L2 (euclidian) norm of three images algorithm.
This algorithm allows to compute L2 norm (euclidian norm) of three images. Given three input images
,
and
, output image values are defined by :
Here is an example of a L2 norm computation applied to three floating point grey level input images :
- See also
- http://en.wikipedia.org/wiki/Norm_%28mathematics%29#Euclidean_norm
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLArithmetic as arithm
Code Example
inImg1 = PyIPSDK.loadTiffImageFile(inputImg1Path)
inImg2 = PyIPSDK.loadTiffImageFile(inputImg2Path)
inImg3 = PyIPSDK.loadTiffImageFile(inputImg3Path)
outImg = arithm.l2Norm3Img(inImg1, inImg2, inImg3)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLArithmetic/Processor/L2Norm3Img/L2Norm3Img.h>
Code Example
GradientXYZImg gradientXYZ = gaussianGradient3dImg(pInImg, 3.0f);
ImagePtr pOutImg = l2Norm3Img(gradientXYZ._pXGradImg, gradientXYZ._pYGradImg, gradientXYZ._pZGradImg);