コード例 #1
0
 /**
  * Add stats in the column for line figures.
  *
  * @param fig the figure where the stats come from.
  * @param data the data being populated.
  * @param channel the channel where the stats come from/.
  * @param count the column in the table being populated.
  */
 private void addValuesForLineFigure(ROIFigure fig, Double data[][], int channel, int count) {
   data[count][6] = AnnotationKeys.STARTPOINTX.get(shape);
   data[count][7] = AnnotationKeys.STARTPOINTY.get(shape);
   data[count][8] = AnnotationKeys.ENDPOINTX.get(shape);
   data[count][9] = AnnotationKeys.ENDPOINTY.get(shape);
   data[count][10] = AnnotationKeys.CENTREX.get(shape);
   data[count][11] = AnnotationKeys.CENTREY.get(shape);
 }
コード例 #2
0
 /**
  * Add stats in the column for area figures.
  *
  * @param fig the figure where the stats come from.
  * @param data the data being populated.
  * @param count the column in the table being populated.
  */
 private void addValuesForAreaFigure(ROIFigure fig, Double data[][], int channel, int count) {
   data[count][6] = AnnotationKeys.AREA.get(fig.getROIShape());
   data[count][7] = fig.getBounds().getX();
   data[count][8] = fig.getBounds().getY();
   data[count][9] = AnnotationKeys.WIDTH.get(fig.getROIShape());
   data[count][10] = AnnotationKeys.HEIGHT.get(fig.getROIShape());
   data[count][11] = AnnotationKeys.CENTREX.get(fig.getROIShape());
   data[count][12] = AnnotationKeys.CENTREY.get(fig.getROIShape());
 }
コード例 #3
0
 /**
  * Add stats in the column for point figures.
  *
  * @param fig the figure where the stats come from.
  * @param data the data being populated.
  * @param channel the channel where the stats come from/.
  * @param count the column in the table being populated.
  */
 private void addValuesForPointFigure(ROIFigure fig, Double data[][], int channel, int count) {
   data[count][6] = AnnotationKeys.CENTREX.get(shape);
   data[count][7] = AnnotationKeys.CENTREY.get(shape);
 }