Name
CalculateTextureEnergy — calculates Laws Texture Energy
Calling Sequence
TextureImage = CalculateTextureEnergy(Image, FilterType);
Parameters
- Image
2D matrix of type uint8, uint16, uint32 or double
- FilterType
scalar of type uint8, can be TEXTURE_EDGE_EDGE,
TEXTURE_EDGE_LEVEL, TEXTURE_EDGE_RIPPLE, TEXTURE_EDGE_SPOT,
TEXTURE_LEVEL_RIPPLE, TEXTURE_LEVEL_SPOT, TEXTURE_RIPPLE_RIPPLE,
TEXTURE_RIPPLE_SPOT or TEXTURE_SPOT_SPOT
- TextureImage
2D matrix of type double and the same size as Image
Description
This function calculates Laws Texture Energy.
Examples
RGB = ReadImage('contrib\IPD-4.0\demos\teaset.png');
Image = RGB2Gray(RGB);
TextureImage = CalculateTextureEnergy(Image, TEXTURE_EDGE_LEVEL);
figure(); ShowImage(TextureImage, 'Texture Image', jetcolormap(max(TextureImage)));