public class BOAState.BOAp extends Object
BOAp is static class contains internal as well as external parameters used to define snake
and to control contour matching algorithm. There are also several basic get/set methods for
accessing selected parameters, setting default
values
and
writing/reading
these (external) parameters to/from disk. File format used for storing data in files is
defined at QParams
class.
External parameters are those related to algorithm options whereas internal are those related to internal settings of algorithm, GUI and whole plugin
This class is shared among different QuimP components.
QParams
Modifier and Type | Field and Description |
---|---|
int |
frame
Current frame, CustomStackWindow.updateSliceSelector().
|
int |
snakeToZoom
Snake selected in zoom selector, negative value if 100% view.
|
Constructor and Description |
---|
BOAp()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
deductFilterFileName()
Generate main filter config file name.
|
String |
deductNewParamFileName()
Generate main param file (new) name.
|
String |
deductParamFileName(int id)
Generate main param file (old) name basing on ID.
|
String |
deductSnakeFileName(int id)
Generate Snake file name basing on ID.
|
String |
deductStatsFileName(int id)
Generate stats file name basing on ID.
|
String |
getFileName()
Get fileName.
|
int |
getFrames()
Get FRAMES.
|
int |
getHeight()
Get HEIGHT.
|
double |
getImageFrameInterval()
Get imageFrameInterval.
|
double |
getImageScale()
Get scale of the image.
|
File |
getOrgFile()
Get orgFile - image opened in BOA.
|
File |
getOutputFileCore()
Get outputFileCore.
|
int |
getWidth()
Get WIDTH.
|
boolean |
isfIAdjusted()
Get fIAdjusted.
|
boolean |
isScaleAdjusted()
Get scaleAdjusted.
|
void |
setImageFrameInterval(double imageFrameInterval)
Set imageFrameInterval.
|
void |
setImageScale(double imageScale)
Set scale of teh image.
|
void |
setOrgFile(File orgFile)
Set orgFile.
|
void |
setOutputFileCore(String outputFileCore)
Set setOutputFileCore.
|
void |
setup(ij.ImagePlus ip)
Initialize internal parameters of BOA plugin from ImagePlus.
|
public int frame
public int snakeToZoom
public double getImageScale()
public void setImageScale(double imageScale)
imageScale
- the imageScale to setpublic boolean isScaleAdjusted()
public double getImageFrameInterval()
public void setImageFrameInterval(double imageFrameInterval)
imageFrameInterval
- the imageFrameInterval to setpublic boolean isfIAdjusted()
public void setup(ij.ImagePlus ip)
Most of these parameters are related to state machine of BOA. There are also parameters
related to internal state of Active Contour algorithm. Defaults for parameters available
for user are set in BOAState.SegParam.setDefaults()
ip
- Reference to segmented image passed from IJpublic int getFrames()
public int getWidth()
public int getHeight()
public File getOrgFile()
public void setOrgFile(File orgFile)
orgFile
- the orgFile to setpublic File getOutputFileCore()
outputFileCore
public void setOutputFileCore(String outputFileCore)
outputFileCore
- the outputFileCore to setpublic String getFileName()
public String deductSnakeFileName(int id)
Mainly to have this in one place. Use outputFileCore that is set by user choice of output
id
- of Snakepublic String deductStatsFileName(int id)
Mainly to have this in one place. Use outputFileCore that is set by user choice of output
id
- of Snakepublic String deductParamFileName(int id)
Mainly to have this in one place. Use outputFileCore that is set by user choice of output
id
- of Snakepublic String deductFilterFileName()
Mainly to have this in one place. Use outputFileCore that is set by user choice of output
public String deductNewParamFileName()
Mainly to have this in one place. Use outputFileCore that is set by user choice of output
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.