/*========================================================================= Program: FusionViewer Module: $RCSfile: LineProfileMeasurement.java,v $ Language: Java Date: $Date: 2007/02/02 19:25:27 $ Version: $Revision: 1.2 $ Copyright (c) Insightful Corporation. All rights reserved. See Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ package org.fusionviewer.display; import java.io.PrintWriter; /**\class LineProfileMeasurement *\brief Measure the Line drawn in the image and create instant profile for it */ public class LineProfileMeasurement { public double[] values; // values along a line in an image public int numValues; // number of values in values that are valid public LineProfileMeasurement() { } public LineProfileMeasurement(int numValues) { this.numValues = numValues; values = new double[numValues]; } public void clear() { numValues = 0; } public void print(PrintWriter pw) { for (int i = 0; i < numValues; i++) pw.println(values[i]); } }