com.pearsoneduc.ip.op
Class MaximumFilterOp
java.lang.Object
|
+--com.pearsoneduc.ip.op.StandardGreyOp
|
+--com.pearsoneduc.ip.op.NeighbourhoodOp
|
+--com.pearsoneduc.ip.op.RankFilterOp
|
+--com.pearsoneduc.ip.op.MaximumFilterOp
- public class MaximumFilterOp
- extends RankFilterOp
Performs maximum filtering of a BufferedImage.
Note: this can also be done with a RankFilterOp, but a
faster algorithm is used here.
- Version:
- 1.0 [1999/07/23]
- Author:
- Nick Efford
Constructor Summary |
MaximumFilterOp()
Constructs a MaximumFilterOp for a 3x3 neighbourhood. |
MaximumFilterOp(int w,
int h)
Constructs a MaximumFilterOp for the given neighbourhood
dimensions. |
MaximumFilterOp(int w,
int h,
int strategy)
Constructs a MaximumFilterOp for the given neighbourhood
dimensions and border processing strategy. |
Method Summary |
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
Performs maximum filtering of an image. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MaximumFilterOp
public MaximumFilterOp()
- Constructs a MaximumFilterOp for a 3x3 neighbourhood.
No special border processing will be done.
MaximumFilterOp
public MaximumFilterOp(int w,
int h)
- Constructs a MaximumFilterOp for the given neighbourhood
dimensions. No special border processing will be done.
- Parameters:
w
- width of neighbourhoodh
- height of neighbourhood
MaximumFilterOp
public MaximumFilterOp(int w,
int h,
int strategy)
- Constructs a MaximumFilterOp for the given neighbourhood
dimensions and border processing strategy.
- Parameters:
w
- width of neighbourhoodh
- height of neighbourhoodstrategy
- border processing strategy
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
- Performs maximum filtering of an image.
- Parameters:
src
- source imagedest
- destination image, or null- Returns:
- processed image.
- Overrides:
- filter in class RankFilterOp