Public Member Functions | |
CombineCoOccurrence | PerformCoOccurrence (int[,] mOriginal, int nNoValueIndicate, int numDistance) |
Calculate all co-occurrence matrices. | |
ArrayList | getCoOccurrenceHeader (int[,] mOriginal, int nNoValueIndicate) |
Get a list of unique values in the matrix (these will become the labels for the rows and columns of the co-occurrence matrix). | |
Static Public Member Functions | |
static void | PerformHaralick (LIDCNodule nodule) |
Calculates Haralick co-occurrence features for a nodule (saves the data in the structure). | |
Static Public Attributes | |
static string[] | featureNames |
List of "official" Haralick feature names. | |
Private Member Functions | |
double[,] | getCoOccurrence (int[,] mOriginal, ArrayList arrHeader, int direction, int distance) |
Calculate one co-occurrence matrix and normalize it. | |
Static Private Attributes | |
static int | numDirs = 4 |
Number of directions: (0, 45, 90, 135 degrees). | |
static int | numDists = 4 |
Number of distances: (1, 2, 3 and 4). | |
static int | numFeats = featureNames.Length |
Number of Haralick features. |
This class contains all the "heavy-lifting" for co-occurrence and Haralick feature calculation. To calculate the Haralick features for a nodule, you need the primary information about it (series, slice, nodule ID, etc) and the segmented DICOM image. Then, create an LIDCNodule object for the nodule and call PerformHaralick() on that nodule. This will fill the Haralick data member with all of the feature information.
double [,] BRISC::Core::GlobalCoOccurrence::getCoOccurrence | ( | intmOriginal | [,], | |
ArrayList | arrHeader, | |||
int | direction, | |||
int | distance | |||
) | [inline, private] |
Calculate one co-occurrence matrix and normalize it.
mOriginal | Original two-dimensional matrix | |
arrHeader | List of unique matrix values | |
direction | Direction (1=0,2=45,3=90,4=135 degrees) | |
distance | Displacement |
ArrayList BRISC::Core::GlobalCoOccurrence::getCoOccurrenceHeader | ( | intmOriginal | [,], | |
int | nNoValueIndicate | |||
) | [inline] |
Get a list of unique values in the matrix (these will become the labels for the rows and columns of the co-occurrence matrix).
mOriginal | Original two-dimensional matrix | |
nNoValueIndicate | Background signal value |
CombineCoOccurrence BRISC::Core::GlobalCoOccurrence::PerformCoOccurrence | ( | int | mOriginal[,], | |
int | nNoValueIndicate, | |||
int | numDistance | |||
) | [inline] |
Calculate all co-occurrence matrices.
mOriginal | Original two-dimensional matrix | |
nNoValueIndicate | Background signal value | |
numDistance | Number of displacements to use |
static void BRISC::Core::GlobalCoOccurrence::PerformHaralick | ( | LIDCNodule | nodule | ) | [inline, static] |
Calculates Haralick co-occurrence features for a nodule (saves the data in the structure).
nodule | Nodule of interest |