Catalano.Imaging.Texture
Class LawsTextureEnergy
- java.lang.Object
-
- Catalano.Imaging.Texture.LawsTextureEnergy
-
public class LawsTextureEnergy extends java.lang.ObjectLaws Texture Energy Masks works by finding the average gray: Level, Edges, Spots, Ripples, and Waves in the image.
-
-
Field Summary
Fields Modifier and Type Field and Description static int[]EdgesEdgesstatic int[]LevelLevelstatic int[]RipplesRipplesstatic int[]SpotsSpotsstatic int[]WavesWaves
-
Constructor Summary
Constructors Constructor and Description LawsTextureEnergy()Initialize a new instance of the LawsTextureEnergy class.LawsTextureEnergy(int[][] mask)Initialize a new instance of the LawsTextureEnergy class.LawsTextureEnergy(int[] vector1, int[] vector2)Initialize a new instance of the LawsTextureEnergy class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description longgetTextureEnergyMap()Compute texture energy map.longgetTextureEnergyMap(int x, int y, int width, int height)Compute texture energy map.longgetTextureEnergyMap(IntPoint point, int width, int height)Compute texture energy map.int[]getVector1()Get vector1.int[]getVector2()Get vector2.voidProcessImage(FastBitmap fastBitmap)Process image to produce the texture filtered images.voidsetVector1(int[] vector1)Set vector1.voidsetVector2(int[] vector2)Set vector2.FastBitmaptoFastBitmap()Returns image processed.
-
-
-
Field Detail
-
Level
public static final int[] Level
Level
-
Edges
public static final int[] Edges
Edges
-
Spots
public static final int[] Spots
Spots
-
Ripples
public static final int[] Ripples
Ripples
-
Waves
public static final int[] Waves
Waves
-
-
Constructor Detail
-
LawsTextureEnergy
public LawsTextureEnergy()
Initialize a new instance of the LawsTextureEnergy class.
-
LawsTextureEnergy
public LawsTextureEnergy(int[] vector1, int[] vector2)Initialize a new instance of the LawsTextureEnergy class.- Parameters:
vector1- Vector1.vector2- Vector2.
-
LawsTextureEnergy
public LawsTextureEnergy(int[][] mask)
Initialize a new instance of the LawsTextureEnergy class.- Parameters:
mask- Mask.
-
-
Method Detail
-
getVector1
public int[] getVector1()
Get vector1.- Returns:
- Vector1.
-
setVector1
public void setVector1(int[] vector1)
Set vector1.- Parameters:
vector1- Vector1.
-
getVector2
public int[] getVector2()
Get vector2.- Returns:
- Vector2.
-
setVector2
public void setVector2(int[] vector2)
Set vector2.- Parameters:
vector2- Vector2.
-
ProcessImage
public void ProcessImage(FastBitmap fastBitmap)
Process image to produce the texture filtered images.- Parameters:
fastBitmap- Image to be processed.
-
toFastBitmap
public FastBitmap toFastBitmap()
Returns image processed.- Returns:
- Image processed.
-
getTextureEnergyMap
public long getTextureEnergyMap()
Compute texture energy map. (Entire image)- Returns:
- Texture energy map.
-
getTextureEnergyMap
public long getTextureEnergyMap(int x, int y, int width, int height)Compute texture energy map.- Parameters:
x- X axis coordinate.y- Y axis coordinate.width- Width.height- Height.- Returns:
- Texture energy map.
-
getTextureEnergyMap
public long getTextureEnergyMap(IntPoint point, int width, int height)
Compute texture energy map.- Parameters:
point- Point contains X and Y axis coordinates.width- Width.height- Height.- Returns:
- Texture energy map.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG