annotool.gui
Class AnnImageTable

java.lang.Object
  extended by annotool.gui.AnnImageTable

public class AnnImageTable
extends java.lang.Object

This class is responsible for displaying a list of images or roi that are loaded as problem. Depending upon the mode (ROI input, target file, directory structure), one of its several buildTable... methods are used.


Method Summary
 javax.swing.JScrollPane buildImageTable(java.lang.String[] files, java.lang.String directory, java.lang.String ext)
           
 javax.swing.JScrollPane buildImageTable(java.lang.String directory, java.lang.String ext)
           
 javax.swing.JScrollPane buildImageTable(java.lang.String directory, java.lang.String targetFile, java.lang.String ext)
           
 javax.swing.JScrollPane buildImageTableFromROI(java.lang.String imagePath, java.lang.String[] roiPaths, boolean hasTarget, int depth, int newwidth, int newheight)
          Builds table from list of rois loaded from one or multiple roi zip files.
 javax.swing.JScrollPane buildImageTableFromSubdirectories(java.lang.String directory, java.lang.String ext, boolean hasTarget)
          For hierarchical directory structure.
 java.lang.String[] getChildren()
           
 java.util.HashMap<java.lang.String,java.lang.String> getClassNames()
           
 DataInput getProblem()
           
 int[] getSelectedRows()
           
 boolean is3D()
           
 boolean isColor()
           
 void updateTable(annotool.Annotation[][] predictions)
           
 void updateTable(annotool.Annotation[][] predictions, java.lang.String[] modelLabels, boolean[] supportsProb, boolean isBinary)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildImageTable

public javax.swing.JScrollPane buildImageTable(java.lang.String directory,
                                               java.lang.String targetFile,
                                               java.lang.String ext)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

buildImageTable

public javax.swing.JScrollPane buildImageTable(java.lang.String directory,
                                               java.lang.String ext)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

buildImageTable

public javax.swing.JScrollPane buildImageTable(java.lang.String[] files,
                                               java.lang.String directory,
                                               java.lang.String ext)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

buildImageTableFromSubdirectories

public javax.swing.JScrollPane buildImageTableFromSubdirectories(java.lang.String directory,
                                                                 java.lang.String ext,
                                                                 boolean hasTarget)
                                                          throws java.lang.Exception
For hierarchical directory structure.

Parameters:
directory -
ext -
hasTarget - Whether or not the targets are known (i.e. targets is known if it is problem set for training or testing and not known new problems)
Returns:
Throws:
java.lang.Exception

buildImageTableFromROI

public javax.swing.JScrollPane buildImageTableFromROI(java.lang.String imagePath,
                                                      java.lang.String[] roiPaths,
                                                      boolean hasTarget,
                                                      int depth,
                                                      int newwidth,
                                                      int newheight)
                                               throws java.lang.Exception
Builds table from list of rois loaded from one or multiple roi zip files.

Parameters:
imagePath -
roiPaths -
hasTarget -
Returns:
Throws:
java.lang.Exception

updateTable

public void updateTable(annotool.Annotation[][] predictions)

updateTable

public void updateTable(annotool.Annotation[][] predictions,
                        java.lang.String[] modelLabels,
                        boolean[] supportsProb,
                        boolean isBinary)

getChildren

public java.lang.String[] getChildren()

getClassNames

public java.util.HashMap<java.lang.String,java.lang.String> getClassNames()

getSelectedRows

public int[] getSelectedRows()

getProblem

public DataInput getProblem()

isColor

public boolean isColor()
                throws java.lang.Exception
Throws:
java.lang.Exception

is3D

public boolean is3D()
             throws java.lang.Exception
Throws:
java.lang.Exception