VivoQuant
|
Object to handle operation of the PreProcessing Tool. More...
Public Member Functions | |
void | storeSettings () |
Save current Preprocessing settings into the VQ settings. | |
void | loadSettings () |
Load current VQ settings for Preprocessing. | |
string | settingsToString () |
Dump current Preprocessing settings to a string. More... | |
void | stringToSettings (string params) |
Apply Preprocessing settings (| - delimited and defined with key=value) to the Preprocessing settings. More... | |
void | setProtocol (string protocol) |
Set values in the PreProcessing Tool based on the provided protocol string. More... | |
string | execute (string protocol=string()) |
Set values in the PreProcessing Tool based on the provided protocol string and execute the pre-processing based on these settings. More... | |
void | setComment (string comment) |
Add a comment to the series description of all loaded data. Each image should be marked as updated and will get a DICOM derivation entry on save. More... | |
void | setConvertUnit (string convertUnit) |
Set the target unit for image unit conversions, for example Ci, MBq, SUV, etc. More... | |
string | getConvertUnit () |
Get the current unit images will be converted to. More... | |
string | convertUnit (string &outUnit) |
Convert an image's units to another's. More... | |
string | createQCImages (AbstractDicomRepository *rep) |
Generate Quality Control images with the preprocessing tool. More... | |
void | setUptakeParameter (string source, string parameter, Array< string > info, Index idx=Index()) |
Change the value of a parameter used for decay correction. More... | |
void | setPreferredUptakeSource (string source, Index idx=Index()) |
Change the preferred source to check for decay correction parameters. More... | |
void | setUptakeSourceOrder (Array< string > sourceList, Index idx=Index()) |
Change the order in which to check sources for decay correction parameters. More... | |
void | setInjectedDose (string injectedDose=string()) |
Set the injected dose. If a unit is provided, it will be used instead of values from the image header. More... | |
void | setInjectedDoseValue (string doseValue) |
Set the injected dose value. More... | |
void | setInjectedDoseUnit (string doseUnit) |
Set the injected dose unit. More... | |
string | getInjectedDose (Index idx=Index()) |
Get the injected dose for a given image's DICOM header. More... | |
string | getInjectedDoseValue () |
Get the current injected dose value. | |
string | getInjectedDoseUnit () |
Get the current injected dose unit. | |
void | setWeight (string weight=string()) |
Set the weight value and unit. More... | |
void | setWeightValue (string weightValue) |
Set the value of the weight. More... | |
void | setWeightUnit (string weightUnit) |
Set the unit of the weight. More... | |
string | getWeight (Index idx=Index()) |
Get the weight. More... | |
string | getWeightValue () |
Get the current weight value. | |
string | getWeightUnit () |
Get the current weight unit. | |
void | updateUptakeParameters () |
Update uptake information. Should be called after calls to PreProcessing::setUptakeParameter() | |
void | setStoreRepository (AbstractDicomRepository *rep) |
Sets the Dicom Repository of the data to be stored. More... | |
bool | isValidQCFilename (string filename) |
Checks whether or not the provided filename can be used for saving Quality Control image files. More... | |
Array< string > | parseDoseInput (string doseInput) |
Scans a dose input string (such as "1.0 Bq") for a valid value and unit combination. More... | |
Array< string > | parseWeightInput (string weightInput) |
Scans a weight input string (such as "1.0 kg") for a valid value and unit combination. More... | |
string | parseQCFilename (string filename) |
Scans a filename format string and replaces special characters with header key names. More... | |
string | parseQCFilename (ImageData *image, string filename) |
Scans a filename format string and replaces special characters with header values from an image. More... | |
Protected Member Functions | |
bool | updateInjectedDose () |
Update the injected dose value by iterating through the currently loaded data in the DataManager until a valid dose is found. More... | |
Object to handle operation of the PreProcessing Tool.
This object can be used to configure and run various pre-processing steps on loaded data.
See also ScriptMaster::PreProcessingTool() to obtain this object.
string convertUnit | ( | string & | outUnit | ) |
Convert an image's units to another's.
outUnit | the unit to convert the image values to |
string createQCImages | ( | AbstractDicomRepository * | rep | ) |
Generate Quality Control images with the preprocessing tool.
rep | a DICOM repository to save to |
string execute | ( | string | protocol = string() | ) |
Set values in the PreProcessing Tool based on the provided protocol string and execute the pre-processing based on these settings.
protocol | The protocol string |
string getConvertUnit | ( | ) |
Get the current unit images will be converted to.
string getInjectedDose | ( | Index | idx = Index() | ) |
Get the injected dose for a given image's DICOM header.
idx | The index of the data. If no index is supplied the first image in the data list will be used. |
string getWeight | ( | Index | idx = Index() | ) |
Get the weight.
idx | The index of the data. If no index is supplied the first image in the data list will be used. |
bool isValidQCFilename | ( | string | filename | ) |
Checks whether or not the provided filename can be used for saving Quality Control image files.
filename | the filename that will be used to save the image |
Array<string> parseDoseInput | ( | string | doseInput | ) |
Scans a dose input string (such as "1.0 Bq") for a valid value and unit combination.
doseInput | the input string with dose information |
string parseQCFilename | ( | ImageData * | image, |
string | filename | ||
) |
Scans a filename format string and replaces special characters with header values from an image.
image | the image to read |
filename | the format string, i.e. qc-i-I |
string parseQCFilename | ( | string | filename | ) |
Scans a filename format string and replaces special characters with header key names.
filename | the format string, i.e. qc-i-I |
Array<string> parseWeightInput | ( | string | weightInput | ) |
Scans a weight input string (such as "1.0 kg") for a valid value and unit combination.
weightInput | the input string with weight information |
void setComment | ( | string | comment | ) |
Add a comment to the series description of all loaded data. Each image should be marked as updated and will get a DICOM derivation entry on save.
comment | the comment string |
void setConvertUnit | ( | string | convertUnit | ) |
Set the target unit for image unit conversions, for example Ci, MBq, SUV, etc.
convertUnit | the unit to convert to |
void setInjectedDose | ( | string | injectedDose = string() | ) |
Set the injected dose. If a unit is provided, it will be used instead of values from the image header.
injectedDose | The injected dose value. |
void setInjectedDoseUnit | ( | string | doseUnit | ) |
Set the injected dose unit.
doseUnit |
void setInjectedDoseValue | ( | string | doseValue | ) |
Set the injected dose value.
doseValue |
void setPreferredUptakeSource | ( | string | source, |
Index | idx = Index() |
||
) |
Change the preferred source to check for decay correction parameters.
source | The source of the info (DCM, Manual, or IPACS) |
idx | The index of the data to modify |
void setProtocol | ( | string | protocol | ) |
Set values in the PreProcessing Tool based on the provided protocol string.
protocol | The protocol string, which is of the form "<preprocessingstep0>=<value0>|<preprocessingstep1>=<value1>|...|<preprocessingstepN>=<valueN>" An example protocol string can be generated by clicking the "Protocol" button in the PreProcessing Tool dialog. |
void setStoreRepository | ( | AbstractDicomRepository * | rep | ) |
Sets the Dicom Repository of the data to be stored.
rep | The Dicom repository |
string settingsToString | ( | ) |
Dump current Preprocessing settings to a string.
void setUptakeParameter | ( | string | source, |
string | parameter, | ||
Array< string > | info, | ||
Index | idx = Index() |
||
) |
Change the value of a parameter used for decay correction.
source | The source of the info (DCM, Manual, or IPACS) |
parameter | The name of the parameter |
info | The parameter's value - either a list containing a single number or a list containing datapoint information |
idx | The index of the data to modify |
void setUptakeSourceOrder | ( | Array< string > | sourceList, |
Index | idx = Index() |
||
) |
Change the order in which to check sources for decay correction parameters.
sourceList | The list of sources (DCM, Manual, or IPACS) |
idx | The index of the data to modify |
void setWeight | ( | string | weight = string() | ) |
Set the weight value and unit.
weight | The weight, which must include a unit. |
void setWeightUnit | ( | string | weightUnit | ) |
Set the unit of the weight.
weightUnit |
void setWeightValue | ( | string | weightValue | ) |
Set the value of the weight.
weightValue |
void stringToSettings | ( | string | params | ) |
Apply Preprocessing settings (| - delimited and defined with key=value) to the Preprocessing settings.
params | one or more pipe delimited key=value pairs of settings |
|
protected |
Update the injected dose value by iterating through the currently loaded data in the DataManager until a valid dose is found.