Fix complex morphology
This commit is contained in:
@@ -22,22 +22,21 @@ public class MorphologyService {
|
||||
return BasicMorphology.closing(image, size).toImage();
|
||||
}
|
||||
|
||||
public Image geodesicDilation(Image image, Image mask, int size) {
|
||||
public Image geodesicDilation(Image image, Image mask, int iterations) {
|
||||
return ComplexMorphology
|
||||
.geodesicDilation(image, mask, size)
|
||||
.geodesicDilation(image, mask, iterations)
|
||||
.toImage();
|
||||
}
|
||||
|
||||
public Image geodesicReconstruction(Image marker, Image mask, int size) {
|
||||
public Image geodesicReconstruction(Image image, Image mask) {
|
||||
return ComplexMorphology
|
||||
.geodesicReconstruction(marker, mask, size)
|
||||
.geodesicReconstruction(image, mask)
|
||||
.toImage();
|
||||
}
|
||||
|
||||
public Image meanFilter(Image image, int size) {
|
||||
public Image medianFilter(Image image, int size) {
|
||||
return ComplexMorphology
|
||||
.meanFilter(image, size)
|
||||
.medianFilter(image, size)
|
||||
.toImage();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user