You are here: Start » AVL.NET » AVL.LawsFilter
Filters image with one of classic LAWS filter
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void LawsFilter ( AvlNet.Image inImage, AvlNet.Region inRoi, AvlNet.LawsFilterType inVerticalFilter, AvlNet.LawsFilterType inHorizontalFilter, AvlNet.LawsFilterSize inFilterSize, int inMacroBlockSize, bool inNormalizeLocalContrast, out AvlNet.Image outTextureImage, out AvlNet.Image outTextureEnergyImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | AvlNet.Image | Input mono image. | ||
![]() | inRoi | AvlNet.Region | Region of Interest. Default value: atl::NIL, or null. | ||
![]() | inVerticalFilter | AvlNet.LawsFilterType | Level | Vertical part of filter. Default value: Level. | |
![]() | inHorizontalFilter | AvlNet.LawsFilterType | Edge | Horizontal part of filter. Default value: Edge. | |
![]() | inFilterSize | AvlNet.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 | AvlNet.Image | Filtered image. | ||
![]() | outTextureEnergyImage | AvlNet.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
Error type | Description |
---|---|
DomainError | Laws filters can be applied to single channel images only. |