You are here: Start » AVL.NET » Function Reference » Computer Vision » Texture Analysis » AVL.LawsFilter

AVL.LawsFilter

Filters image with one of the classic LAWS filter.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void LawsFilter
(
	AvlNet.Image inImage,
	AvlNet.LawsFilterType inVerticalFilter,
	AvlNet.LawsFilterType inHorizontalFilter,
	AvlNet.LawsFilterSize inFilterSize,
	int inMacroBlockSize,
	bool inNormalizeLocalContrast,
	AvlNet.Image outTextureImage,
	AvlNet.Image outTextureEnergyImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput mono image.
inVerticalFilterAvlNet.LawsFilterTypeLevelVertical part of filter. Default value: Level.
inHorizontalFilterAvlNet.LawsFilterTypeEdgeHorizontal part of filter. Default value: Edge.
inFilterSizeAvlNet.LawsFilterSizeFilter window size.
inMacroBlockSizeint<3, INF>15Macroblock is used to gather generated texture energy. Default value: 15.
inNormalizeLocalContrastboolFalseWhether to normalize image before processing. Default value: False.
outTextureImageAvlNet.ImageFiltered image.
outTextureEnergyImageAvlNet.ImageTexture 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.

Function Overrides

See also