![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Apply Law's texture 3D filter on an image. More...
Apply Law's texture 3D filter on an image.
Law's texture filter generates texture features to quantify the perceived 3D textures of an image. It's a natural extension of Law's 2D Texture Energy Measures for 3D textures.
Law's texture 3D filter involves the following steps:
filter the neighborhood by applying convolutions with the 63 5x5x5 Law's masks; Law's masks are built from the matrix multiplication of the 4 1D kernels
described in Law's 2D Texture Energy Measures documentation along each one of the X, Y and Z axis.
The 15 5x5 Law's masks are named : 
All these masks are zero-sum masks.
Note: as
would be a simple smoothing and would not bring any texture information, it is not computed.
Compute the 19 final energy maps, in order:



















For each one of these 19 final energy maps, each t-uple is replaced with the average of the t elements.
Resulting energy maps are concatenated in the output sequence image in the order specified above. Most of the time, only a subset of the 19 energy maps are interesting. By the way, by default, the algorithm only computes the
subset. The user also has the possibility to specify his own subset by appropriately initializing a ipsdk::imaproc::attr::LawTextureKernel3dTypes data-item and passing it as argument of lawTexture3dImg function. Then only the maps of this subset will be calculated by the algorithm and returned to the user.
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InSingleImg3d | [Input] single 3d image | X |
| ipsdk::imaproc::attr::InOptLawTextureKernel3dTypes | [Input Optional] Types of 3d kernels for Law's texture computation | X |
| ipsdk::imaproc::attr::InOptLawTexPreProcParams | [Input Optional] Parameters for Law's texture filter input image pre-process phasis | X |
| ipsdk::imaproc::attr::InOptLawTexPostProcParams | [Input Optional] Parameters for Law's texture filter input image post-process phasis | X |
| ipsdk::imaproc::attr::OutRealImg | [Output] image for processing operation (data contained in image buffer are reals) | customOutput (_pOutRealImg, outputLawTexture3d(_pInSingleImg3d,_pInOptLawTextureKernel3dTypes)) |
| ipsdk::imaproc::attr::OutWk1RealImg | [Output] Temporary working image for algorithm | ipsdk::imaproc::duplicateInOut (_pOutWk1RealImg, _pInSingleImg3d, ipsdk::image::eImageBufferType::eIBT_Real32) |
| ipsdk::imaproc::attr::OutOptWk1RealImg | [Output Optional] Temporary working image for algorithm (data contained in image buffer are reals) | X |
| ipsdk::imaproc::attr::OutOptWk2RealImg | [Output Optional] Temporary working image for algorithm (data contained in image buffer are reals) | X |
| ipsdk::imaproc::attr::OutOptWk3RealImg | [Output Optional] Temporary working image for algorithm (data contained in image buffer are reals) | X |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInSingleImg3d,_pOutWk1RealImg) &&
(ipsdk::processor::ifIsSet (_pOutOptWk1RealImg,
ipsdk::imaproc::matchSize (_pInSingleImg3d,_pOutOptWk1RealImg))) &&
(ipsdk::processor::ifIsSet (_pOutOptWk2RealImg,
ipsdk::imaproc::matchSize (_pInSingleImg3d,_pOutOptWk2RealImg)))
| IPSDKIPLSTATS_API image::ImagePtr ipsdk::imaproc::stats::lawTexture3dImg | ( | const image::ImageConstPtr & | pInImg3d | ) |
wrapper function for Apply Law's texture 3d filter on an image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSTATS_API image::ImagePtr ipsdk::imaproc::stats::lawTexture3dImg | ( | const image::ImageConstPtr & | pInImg3d, |
| const ipsdk::imaproc::attr::LawTextureKernel3dTypesConstPtr & | pInKernelTypes, | ||
| const ipsdk::imaproc::attr::LawTexPreProcParamsConstPtr & | pInPreProcParams, | ||
| const ipsdk::imaproc::attr::LawTexPostProcParamsConstPtr & | pInPostProcParams | ||
| ) |
wrapper function for Apply Law's texture 3d filter on an image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSTATS_API void ipsdk::imaproc::stats::lawTexture3dImg | ( | const image::ImageConstPtr & | pInImg3d, |
| const ipsdk::imaproc::attr::LawTextureKernel3dTypesConstPtr & | pInKernelTypes, | ||
| const ipsdk::imaproc::attr::LawTexPreProcParamsConstPtr & | pInPreProcParams, | ||
| const ipsdk::imaproc::attr::LawTexPostProcParamsConstPtr & | pInPostProcParams, | ||
| const image::ImagePtr & | pOutRealImg, | ||
| const image::ImagePtr & | pOutWkImg | ||
| ) |
wrapper function for Apply Law's texture 3d filter on an image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14