Class BoundingBox3D

java.lang.Object
All Implemented Interfaces:
Algo, AlgoListener, RegionAnalyzer<Box3D>

public class BoundingBox3D
extends RegionAnalyzer3D<Box3D>
Compute bounding box of each region within a label or binary image.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    BoundingBox3D()
    Default constructor
  • Method Summary

    Modifier and Type Method Description
    Box3D[] analyzeRegions​(ij.ImageStack image, int[] labels, ij.measure.Calibration calib)
    Computes the bounding box of each region within a 3D label image.
    static Box3D[] boundingBoxes​(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)
    Compute bounding box of each region in input 3D label image and returns the result as an array of Box3D for each region.
    ij.measure.ResultsTable createTable​(java.util.Map<java.lang.Integer,​Box3D> map)
    Utility method that transforms the mapping between labels and Box3D instances into a ResultsTable that can be displayed with ImageJ.

    Methods inherited from class inra.ijpb.measure.region3d.RegionAnalyzer3D

    algoProgressChanged, algoStatusChanged, analyzeRegions, analyzeRegions, computeTable, createMap

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BoundingBox3D

      public BoundingBox3D()
      Default constructor
  • Method Details

    • boundingBoxes

      public static final Box3D[] boundingBoxes​(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)
      Compute bounding box of each region in input 3D label image and returns the result as an array of Box3D for each region.
      Parameters:
      labelImage - the input image containing label of particles
      labels - an array of unique labels in image
      calib - the calibration of the image
      Returns:
      an array of Box3D instances containing for each region its extent in each dimension
    • analyzeRegions

      public Box3D[] analyzeRegions​(ij.ImageStack image, int[] labels, ij.measure.Calibration calib)
      Computes the bounding box of each region within a 3D label image.
      Specified by:
      analyzeRegions in class RegionAnalyzer3D<Box3D>
      Parameters:
      image - the input image containing label of particles
      labels - the array of labels within the image
      calib - the calibration of the image
      Returns:
      an array of Box3D representing the calibrated coordinates of the bounding box of each region
    • createTable

      public ij.measure.ResultsTable createTable​(java.util.Map<java.lang.Integer,​Box3D> map)
      Utility method that transforms the mapping between labels and Box3D instances into a ResultsTable that can be displayed with ImageJ.
      Parameters:
      map - the mapping between labels and Box3D instances
      Returns:
      a ResultsTable that can be displayed with ImageJ.