br.usp.ime.klava.segmentit.util
Class MarkersFromPartition

java.lang.Object
  extended by br.usp.ime.klava.segmentit.util.MarkersFromPartition

public final class MarkersFromPartition
extends java.lang.Object

Computes the markers that can be used to recover the given partition by the watershed transform. The computation of the markers are done in the PrimitiveCatchmentBasin granularity, computing the so called non-redundant receptive regions (NRRRs) and creating markers that crosses all the NRRRs of each region of interest.

More details on the NRRRs computation can be found on: Seed-Relative Segmentation Robustness of Watershed and Fuzzy Connectedness Approaches

Author:
Bruno Klava

Method Summary
static java.awt.image.BufferedImage getMarkersImage(PrimitiveCatchmentBasinsGraph graph, int[] labels)
          Returns an image containing markers that crosses all the NRRRs of each region of interest of the partition to be recovered.
static java.awt.image.BufferedImage getMarkersImage(PrimitiveCatchmentBasinsGraph graph, TreeOfCriticalLakes TCL)
          Returns an image containing markers that crosses all the NRRRs of each region of interest of the partition to be recovered.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMarkersImage

public static java.awt.image.BufferedImage getMarkersImage(PrimitiveCatchmentBasinsGraph graph,
                                                           TreeOfCriticalLakes TCL)
Returns an image containing markers that crosses all the NRRRs of each region of interest of the partition to be recovered.

Parameters:
graph - the PrimitiveCatchmentBasinsGraph from with the partition is derived
TCL - the TreeOfCriticalLakes whose selected partition is the desired partition to be recovered
Returns:
markers to recover the desired partition by the watershed transform in the PrimitiveCatchmentBasin granularity

getMarkersImage

public static java.awt.image.BufferedImage getMarkersImage(PrimitiveCatchmentBasinsGraph graph,
                                                           int[] labels)
Returns an image containing markers that crosses all the NRRRs of each region of interest of the partition to be recovered.

Parameters:
graph - the PrimitiveCatchmentBasinsGraph from with the partition is derived
labels - a labeling to the vertices of the given graph representing the desired partition
Returns:
markers to recover the desired partition by the watershed transform in the PrimitiveCatchmentBasin granularity