You are here: Start » FIL.NET » Function Reference » Computer Vision » Texture Analysis » FIL.LawsFilter
Filters image with one of the classic LAWS filter.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void LawsFilter ( FilNet.Image inImage, FilNet.LawsFilterType inVerticalFilter, FilNet.LawsFilterType inHorizontalFilter, FilNet.LawsFilterSize inFilterSize, int inMacroBlockSize, bool inNormalizeLocalContrast, FilNet.Image outTextureImage, FilNet.Image outTextureEnergyImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input mono image. | ||
![]() | inVerticalFilter | FilNet.LawsFilterType | Level | Vertical part of filter. Default value: Level. | |
![]() | inHorizontalFilter | FilNet.LawsFilterType | Edge | Horizontal part of filter. Default value: Edge. | |
![]() | inFilterSize | FilNet.LawsFilterSize | Filter window size. | ||
![]() | inMacroBlockSize | int | <3, INF> | 15 | Macroblock is used to gather generated texture energy. Default value: 15. |
![]() | inNormalizeLocalContrast | bool | False | Whether to normalize image before processing. Default value: False. | |
![]() | outTextureImage | FilNet.Image | Filtered image. | ||
![]() | outTextureEnergyImage | FilNet.Image | Texture energy (AVG). |
Description
The operation applies texture filters to input image to obtain energy measures.
Laws filter types are: Level, Edge, Wave, Spot, Ripple, Oscillation and Undulation.
Examples
![]() |
![]() |
![]() |
![]() |
From left: sample image, applied Level and Wave filters, Spot and Edge, Spot and Ripple.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Laws filters can be applied to single channel images only. |
DomainError | Not supported inImage pixel format in LawsFilter. Supported formats: 1xUInt8. |