BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions Enumerations Properties
BioCore.Statistics Class Reference

Public Member Functions

 Statistics (bool bit16)
 
void AddStatistics (Statistics s)
 
void MeanHistogram ()
 
PointF[] GetPoints (int bin)
 
void Dispose ()
 The Dispose() function is used to free up memory that is no longer needed. More...
 
void DisposeHistogram ()
 

‍This function is used to free up the memory used by the histogram

More...
 

Static Public Member Functions

static Statistics[] FromBytes (byte[] bts, int w, int h, int rGBChannels, int BitsPerPixel, int stride)
 
static Statistics[] FromBytes (BufferInfo bf)
 
static void FromBytes ()
 It takes the data from the byte array and converts it into a string. More...
 
static void CalcStatistics (BufferInfo bf)
 
static void ClearCalcBuffer ()
 This function clears the list of numbers and operators. More...
 

Static Public Attributes

static BioImage b = null
 
static Dictionary< string, BufferInfolist = new Dictionary<string, BufferInfo>()
 

Properties

int[] Values [get, set]
 
int Min [get]
 
int Max [get]
 
double Mean [get]
 
int BitsPerPixel [get]
 
float Median [get]
 
float StackMedian [get]
 
float StackMean [get]
 
float StackMax [get]
 
float StackMin [get]
 
float[] StackValues [get]
 

Detailed Description

Definition at line 5044 of file Bio.cs.

Constructor & Destructor Documentation

◆ Statistics()

BioCore.Statistics.Statistics ( bool  bit16)

Definition at line 5119 of file Bio.cs.

Member Function Documentation

◆ AddStatistics()

void BioCore.Statistics.AddStatistics ( Statistics  s)

It takes a Statistics object and adds it to the current Statistics object

Parameters
Statistics

Definition at line 5351 of file Bio.cs.

◆ CalcStatistics()

static void BioCore.Statistics.CalcStatistics ( BufferInfo  bf)
static

It creates a new thread, adds the thread to a dictionary, and starts the thread

Parameters
BufferInfo

Definition at line 5335 of file Bio.cs.

◆ ClearCalcBuffer()

static void BioCore.Statistics.ClearCalcBuffer ( )
static

This function clears the list of numbers and operators.

Definition at line 5344 of file Bio.cs.

◆ Dispose()

void BioCore.Statistics.Dispose ( )

The Dispose() function is used to free up memory that is no longer needed.

Definition at line 5417 of file Bio.cs.

◆ DisposeHistogram()

void BioCore.Statistics.DisposeHistogram ( )

‍This function is used to free up the memory used by the histogram

Definition at line 5423 of file Bio.cs.

◆ FromBytes() [1/3]

static void BioCore.Statistics.FromBytes ( )
static

It takes the data from the byte array and converts it into a string.

Definition at line 5326 of file Bio.cs.

◆ FromBytes() [2/3]

static Statistics[] BioCore.Statistics.FromBytes ( BufferInfo  bf)
static

It takes a byte array, and returns an array of Statistics objects

Parameters
BufferInfo
Returns
An array of Statistics objects.

Definition at line 5319 of file Bio.cs.

◆ FromBytes() [3/3]

static Statistics[] BioCore.Statistics.FromBytes ( byte[]  bts,
int  w,
int  h,
int  rGBChannels,
int  BitsPerPixel,
int  stride 
)
static

It takes a byte array, width, height, number of channels, bits per pixel, and stride, and returns an array of Statistics objects

Parameters
btsthe byte array of the image
wwidth of the image
hheight of the image
rGBChannelsThe number of channels in the image.
BitsPerPixel8 or 16
strideThe number of bytes per row.
Returns
An array of Statistics objects.

Definition at line 5142 of file Bio.cs.

◆ GetPoints()

PointF[] BioCore.Statistics.GetPoints ( int  bin)

It takes an array of floats, and returns an array of points, where each point is the average of the values in the original array

Parameters
binThe number of pixels to skip when sampling the image.
Returns
An array of points.

Definition at line 5406 of file Bio.cs.

◆ MeanHistogram()

void BioCore.Statistics.MeanHistogram ( )

This function takes the sum of all the values in the stack and divides it by the number of values in the stack.

The stackMean is the average of all the values in the stack.

The stackMedian is the highest value in the stack.

The stackValues is the array of values in the stack.

The count is the number of values in the stack.

The meansum is the sum of all the values in the stack.

Definition at line 5384 of file Bio.cs.

Member Data Documentation

◆ b

BioImage BioCore.Statistics.b = null
static

Definition at line 5323 of file Bio.cs.

◆ list

Dictionary<string, BufferInfo> BioCore.Statistics.list = new Dictionary<string, BufferInfo>()
static

Definition at line 5324 of file Bio.cs.

Property Documentation

◆ BitsPerPixel

int BioCore.Statistics.BitsPerPixel
get

Definition at line 5076 of file Bio.cs.

◆ Max

int BioCore.Statistics.Max
get

Definition at line 5068 of file Bio.cs.

◆ Mean

double BioCore.Statistics.Mean
get

Definition at line 5072 of file Bio.cs.

◆ Median

float BioCore.Statistics.Median
get

Definition at line 5080 of file Bio.cs.

◆ Min

int BioCore.Statistics.Min
get

Definition at line 5064 of file Bio.cs.

◆ StackMax

float BioCore.Statistics.StackMax
get

Definition at line 5101 of file Bio.cs.

◆ StackMean

float BioCore.Statistics.StackMean
get

Definition at line 5094 of file Bio.cs.

◆ StackMedian

float BioCore.Statistics.StackMedian
get

Definition at line 5087 of file Bio.cs.

◆ StackMin

float BioCore.Statistics.StackMin
get

Definition at line 5108 of file Bio.cs.

◆ StackValues

float [] BioCore.Statistics.StackValues
get

Definition at line 5115 of file Bio.cs.

◆ Values

int [] BioCore.Statistics.Values
getset

Definition at line 5047 of file Bio.cs.


The documentation for this class was generated from the following file: