VivoQuant
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | List of all members
MinMaxTool Class Reference

Object for updating the mix/max values of the image display range. More...

#include <MinMaxTool.h>

Public Slots

void clipMin0 ()
 Set all values below min to 0.
 
void clipMax0 ()
 Set all values above max to 0.
 
void clipMinMin ()
 Set all values below min to min.
 
void clipMaxMax ()
 Set all values above max to max.
 
void applyValues ()
 Store min/max values in QRasterImage (as cached min/max)
 
void resetValues ()
 Read cached values back from QRasterImage.
 
void recalcValues ()
 Calculates min/max from QRasterImage and update fields.
 
void showPercentileToImageVal ()
 Uses computePercentileCutoff to find/show percentile cutoff.
 
void updatePercentileButtonEnabled ()
 Updates enabled status in case images unloaded.
 
void copyToMax ()
 If value from percentile calculator exists, copy it to max.
 
void saveNewPercentilesCSV ()
 Make new csv file and add the existing table to it including labels.
 
void appendPercentilesCSV ()
 Append to existing csv file from the existing table without labels.
 
void showTable (bool show)
 Open a new table for percentile values.
 
void appendRow ()
 Append percentile to percentiles table.
 
void removeRow ()
 Remove row from table.
 
void updateMode ()
 Updates the tool mode to Min/Max or Window Width/Level mode based on setting.
 
void showHistogram ()
 Show pixel histogram plot.
 
void showPctileTool (bool show)
 Show the items in percentile tool group box.
 

Public Member Functions

double computePercentileCutoff (int imageIdx, double percent, int roi=-1)
 Using the given percentile value and index, finds raw image value that corresponds to a cutoff at the given percentile. If n is the number of voxels in the image, this function uses O(n) memory and is bounded with a O(n*log(n)) runtime.
 

Detailed Description

Object for updating the mix/max values of the image display range.

This object can be used to update the min/max value and window width/level of the image intensity display range.

See also ScriptMaster::minMaxTool() to obtain this object.

Member Function Documentation

◆ computePercentileCutoff()

double computePercentileCutoff ( int  imageIdx,
double  percent,
int  roi = -1 
)

Using the given percentile value and index, finds raw image value that corresponds to a cutoff at the given percentile. If n is the number of voxels in the image, this function uses O(n) memory and is bounded with a O(n*log(n)) runtime.

Parameters
imageIdxIndicex to the DataManager
percentPercent that must be between 0 and 1
targetroi index to process the cufoff percent
Returns
The computed image pixel value is been cut off

◆ showPctileTool

void showPctileTool ( bool  show)
slot

Show the items in percentile tool group box.

Parameters
showShow or hide the precentile tool Group box

◆ showTable

void showTable ( bool  show)
slot

Open a new table for percentile values.

Parameters
showShow or hide the table in precentile tool