org.shapelogic.imageprocessing
Class SBSegmentation

java.lang.Object
  extended by org.shapelogic.imageprocessing.SBSegmentation

public class SBSegmentation
extends java.lang.Object

High level class for segmentation. Works with both color and gray scale.

Author:
Sami Badawi

Constructor Summary
SBSegmentation()
           
 
Method Summary
 java.lang.String getStatus()
           
 void init()
          line is at the edge of image and pointing away from the center
 void segment(int x, int y)
          Start segmentation by selecting a point Use the color of that point at your goal color
 void segmentAll()
           
 void setImageProcessor(ij.process.ImageProcessor ip)
           
 void setPixelCompare(SBPixelCompare pixelCompare)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SBSegmentation

public SBSegmentation()
Method Detail

segmentAll

public void segmentAll()

segment

public void segment(int x,
                    int y)
Start segmentation by selecting a point Use the color of that point at your goal color

Parameters:
x -
y -

init

public void init()
line is at the edge of image and pointing away from the center


setImageProcessor

public void setImageProcessor(ij.process.ImageProcessor ip)
Parameters:
ip - The ip to set.

setPixelCompare

public void setPixelCompare(SBPixelCompare pixelCompare)
Parameters:
pixelCompare - The pixelCompare to set.

getStatus

public java.lang.String getStatus()
Returns:
Returns the status.


Copyright © 2007. All Rights Reserved.