Class AutomaticThresholding
- java.lang.Object
-
- in.itzmeanjan.filterit.segmentation.AutomaticThresholding
-
public class AutomaticThresholding extends java.lang.ObjectGiven a buffered image with bimodal histogram, we'll segment that image into foreground and background using automatic thresholding mechanism.This one implements Otsu's Algorithm.
-
-
Constructor Summary
Constructors Constructor Description AutomaticThresholding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagesegment(java.awt.image.BufferedImage img)Performs automatic thresholding based image segmentation op, using Otsu's Algorithmjava.awt.image.BufferedImagesegment(java.lang.String img)Performs automatic thresholding based image segmentation op, using Otsu's Algorithm
-
-
-
Method Detail
-
segment
public java.awt.image.BufferedImage segment(java.awt.image.BufferedImage img)
Performs automatic thresholding based image segmentation op, using Otsu's Algorithm- Parameters:
img- Image to be segmented- Returns:
- Segmented image
-
segment
public java.awt.image.BufferedImage segment(java.lang.String img)
Performs automatic thresholding based image segmentation op, using Otsu's Algorithm- Parameters:
img- Image to be segmented- Returns:
- Segmented image
-
-