Start » Filter Reference » Computer Vision » Texture Analysis » LawsFilter

LawsFilter


Module: FoundationBasic

Filters image with one of the classic LAWS filter.

Name Type Range Description
Input value
inImage Image Input mono image.
Input value
inRoi Region* Region of Interest.
Input value
inVerticalFilter LawsFilterType Vertical part of filter.
Input value
inHorizontalFilter LawsFilterType Horizontal part of filter.
Input value
inFilterSize LawsFilterSize Filter window size.
Input value
inMacroBlockSize Integer 3 - Macroblock is used to gather generated texture energy.
Input value
inNormalizeLocalContrast Bool Whether to normalize image before processing.
Output value
outTextureImage Image Filtered image.
Output value
outTextureEnergyImage Image Texture energy (AVG).

Requirements

For input inImage only pixel formats are supported: 1⨯uint8.

Read more about pixel formats in Image documentation.

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

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

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.

Complexity Level

This filter is available on Advanced Complexity Level.