VivoQuant 6.4.0
Loading...
Searching...
No Matches
AutoradCalibration Class Reference

Description

Tool for calibrating an autorad image.

This tool uses fiducials placed using either the Distance/Annotation Operator or the ROI operator to calibrate the image.

Open the tool with openAutoradCalib() on the Distance/Annotation operator (or openAutoradCalib() on the 3D ROI Tool operator), then obtain this object with getCalibrationWidget(). Before the tool is opened, getCalibrationWidget() returns undefined.

VQ.mainWin().setViewMode("Slice View", "Distance/Annotation");
var op = VQ.currentOp();
op.openAutoradCalib();
var calib = op.getCalibrationWidget();

Public Slots

void run ()
 Run the tool.
void fillConcentrations (Array< string > stdConcs, Array< string > recalcConcs)
 Fill the table of concentrations.
void readValuesFromData ()
 Fill the table using currently loaded fiducials.
void backgroundChanged (int newval)
 Update which fiducial is used as the background.
void apply (bool quiet=false)
 Apply the calibration.

Public Member Functions

string getStandardsCentersString ()
 Get the centers of the standards.
string getStandardRadiusString ()
 Get the radii of the standards.
string getStandardsColorString ()
 Get the colors of the standards.
string getProcedureString ()
 Get the weights.
string getSequenceString ()
 Get the sequence from the table.
string getStandardsEquationString ()
 Get the equation with slope and intercept.
void setProfilePlotDimensions (int width, int height)
 Set the dimensions of the profile plot.
float getSlope ()
 Gets the calibration slope value.
float getIntercept ()
 Gets the calibration intercept value.
float getBackgroundMean ()
 Gets the calibration background mean value.
float getFitR2 ()
 Gets the calibration r-squared fit value.

Member Function Documentation

◆ apply

void apply ( bool quiet = false)
slot

Apply the calibration.

Parameters
quiet(optional, default false) If false a popup message will display with the calibration parameters (slope and intercept)

◆ backgroundChanged

void backgroundChanged ( int newval)
slot

Update which fiducial is used as the background.

Parameters
newvalthe id of the new background

◆ fillConcentrations

void fillConcentrations ( Array< string > stdConcs,
Array< string > recalcConcs )
slot

Fill the table of concentrations.

Parameters
stdConcsa list of the standard concentrations
recalcConcsa list of the the recalculated concentrations

◆ getBackgroundMean()

float getBackgroundMean ( )
inline

Gets the calibration background mean value.

Returns
The background mean value

◆ getFitR2()

float getFitR2 ( )
inline

Gets the calibration r-squared fit value.

Returns
The r-squared value

◆ getIntercept()

float getIntercept ( )
inline

Gets the calibration intercept value.

Returns
The intercept value

◆ getSlope()

float getSlope ( )
inline

Gets the calibration slope value.

Returns
The slope value

◆ setProfilePlotDimensions()

void setProfilePlotDimensions ( int width,
int height )

Set the dimensions of the profile plot.

Parameters
widthThe width of the profile plot window
heightThe height of the profile plot window