ObjectCount

(requires: Automatic Measurement)

_ObjectCountLoadSettings, _ObjectCountSaveSettings, ObjectCountAutoUpdate, ObjectCountExportDetailedToExcel, ObjectCountExportDetailedToFile, ObjectCountExportRawToExcel, ObjectCountExportRawToFile, ObjectCountGenerateBinary, ObjectCountGenerateBinaryND, ObjectCountGetCount, ObjectCountGetObjectFeature, ObjectCountLoadSettings, ObjectCountRestrObjAt, ObjectCountRestrObjSel, ObjectCountRestrReset, ObjectCountRestrSet, ObjectCountSaveSettings, ObjectCountUpdate

ObjectCountAutoUpdate

Description 

 ObjectCountAutoUpdate(
   int  Enable
);

This function sets the Keep updating count status.

Parameters

int Enable

0

Disable.

1

Enable.

ObjectCountExportDetailedToExcel

Description 

 ObjectCountExportDetailedToExcel(
   char *ObjectCountNote
);

Exports statistics specific for every object to MS Excel, including statistics regarding all objects.

Parameters

char *ObjectCountNote

A note that is displayed in a separate column.

ObjectCountExportDetailedToFile

Description 

 ObjectCountExportDetailedToFile(
   char *ObjectCountFile,
   char *ObjectCountNote
);

Exports statistics specific for every object to a file, including statistics regarding all objects.

Parameters

char *ObjectCountFile

File path including file name.

char *ObjectCountNote

A note that is displayed in a separate column.

ObjectCountExportRawToExcel

Description 

 ObjectCountExportRawToExcel(
   char *ObjectCountNote
);

Exports statistics specific for every object to MS Excel.

Parameters

char *ObjectCountNote

A note that is displayed in a separate column.

ObjectCountExportRawToFile

Description 

 ObjectCountExportRawToFile(
   char *ObjectCountFile,
   char *ObjectCountNote
);

Exports statistics specific for every object to a file.

Parameters

char *ObjectCountFile

File path including file name.

char *ObjectCountNote

A note that is displayed in a separate column.

ObjectCountGenerateBinary

Description 

 ObjectCountGenerateBinary();

This function turns the currently thresholded object count layer to a Binary layer. Any restrictions defined within the Object Count window will be applied (restricted objects will not be copied to the binary layer).

ObjectCountGenerateBinaryND

Description 

 ObjectCountGenerateBinaryND(
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

This function turns the currently thresholded object count layer to a Binary layer. It is applied to the defined ND2 dimensions only. Any restrictions defined within the Object Count window will be applied (restricted objects will not be copied to the binary layer).

Parameters

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

ObjectCountGetCount

Description 

 ObjectCountGetCount(
   int *ObjectCountCount,
   double *ObjectCountAreaFraction,
   double *ObjectCountMeasuredArea
);

Gets the number of counted objects, area fraction and measured area.

Parameters

int *ObjectCountCount

Number of counted objects.

double *ObjectCountAreaFraction

Area fraction.

double *ObjectCountMeasuredArea

Measured area in the current units.

ObjectCountGetObjectFeature

Description 

 ObjectCountGetObjectFeature(
   int  ObjectCountIndex,
   char *ObjectCountFeature,
   double *ObjectCountFeatureValue
);

Gets the feature value for a given object.

Parameters

int ObjectCountIndex

Index of the object. Indices start from 0.

char *ObjectCountFeature

Feature name (Area, EqDiameter, Perimeter, Length, Width, MaxFeret, MinFeret, Circularity, Elongation, MeanIntensity, SumIntensity).

double *ObjectCountFeatureValue

The measured value. For calibrated documents, it is in micrometers.

ObjectCountLoadSettings

Description 

 ObjectCountLoadSettings(
   char *ObjectCountFileName
);

This function loads the current object count settings from a specified file.

Parameters

char *ObjectCountFileName

Defines complete path to the file you want to load/save.

See Also 
ObjectCountSaveSettings, _ObjectCountSaveSettings, _ObjectCountLoadSettings

ObjectCountRestrObjAt

Description 

 ObjectCountRestrObjAt(
   char *ObjectCountFeature,
   int  ObjectCountInclude,
   int  ObjectCountDirection,
   int  DocPosX,
   int  DocPosY
);

Performs restriction according to an object specified by its position.

Parameters

char *ObjectCountFeature

Feature name (Area, EqDiameter, Perimeter, Length, Width, MaxFeret, MinFeret, Circularity, Elongation, MeanIntensity, SumIntensity).

int ObjectCountInclude

0, FALSE (0)

If ObjectCountDirection > 0 excludes objects with values higher than the feature value of the given object. If ObjectCountDirection < 0 excludes objects with values lower than the feature value of the given object

1, TRUE (1)

If ObjectCountDirection > 0 excludes objects with values lower than the feature value of the given object. If ObjectCountDirection < 0 excludes objects with values higher than the feature value of the given object

int ObjectCountDirection

Affects in which direction objects are excluded.

int DocPosX

X position of the object.

int DocPosY

Y position of the object.

Note

The feature minimum and maximum value and inside flag can be modified by the ObjectCountRestrSet function.

See Also 
ObjectCountRestrSet

ObjectCountRestrObjSel

Description 

 ObjectCountRestrObjSel(
   char *ObjectCountFeature,
   int  ObjectCountInclude,
   int  ObjectCountDirection
);

Performs restriction according to the objects selected in the list.

Parameters

char *ObjectCountFeature

Feature name (Area, EqDiameter, Perimeter, Length, Width, MaxFeret, MinFeret, Circularity, Elongation, MeanIntensity, SumIntensity).

int ObjectCountInclude

< 0

Excludes objects with values higher than the highest feature value of the selected objects.

0

Excludes objects with values lower than the lowest feature value and higher than the highest feature value of the selected objects.

> 0

Excludes objects with values lower than the lowest feature value of the selected objects.

int ObjectCountDirection

Affects in which direction objects are excluded.

See Also 
ObjectCountRestrSet

ObjectCountRestrReset

Description 

 ObjectCountRestrReset();

This function resets all restrictions applied to the object count measurement.

ObjectCountRestrSet

Description 

 ObjectCountRestrSet(
   char *ObjectCountFeature,
   int  ObjectCountInside,
   double  ObjectCountMin,
   double  ObjectCountMax
);

Sets the restriction of a given feature. Objects that are inside the interval specified by minimum and maximum are either included or excluded.

Parameters

char *ObjectCountFeature

Feature name (Area, EqDiameter, Perimeter, Length, Width, MaxFeret, MinFeret, Circularity, Elongation, MeanIntensity, SumIntensity).

int ObjectCountInside

When the flag is set, objects that are inside the interval are included, otherwise they are excluded.

0

Resets the inside flag

!= 0

Sets the inside flag for a given restriction.

double ObjectCountMin

Minimum value.

double ObjectCountMax

Maximum value.

See Also 
ObjectCountRestrReset

ObjectCountSaveSettings

Description 

 ObjectCountSaveSettings(
   char *ObjectCountFileName
);

This function saves the current object count settings into a file.

Parameters

char *ObjectCountFileName

Defines complete path to the file you want to load/save.

See Also 
_ObjectCountSaveSettings, ObjectCountLoadSettings, _ObjectCountLoadSettings

ObjectCountUpdate

Description 

 ObjectCountUpdate(
   int  ObjectCountRethreshold
);

Performs an object count update.

Parameters

int ObjectCountRethreshold

Refresh threshold.

<> 0

Forces to apply the threshold.

_ObjectCountLoadSettings

Description 

 _ObjectCountLoadSettings();

This function loads the current object count settings from a file. The function displays the Load Object Count Configuration dialog window.

See Also 
ObjectCountSaveSettings, ObjectCountLoadSettings, _ObjectCountSaveSettings

_ObjectCountSaveSettings

Description 

 _ObjectCountSaveSettings();

This function saves the current object count settings to a file. The function displays the Save Object Count Configuration dialog window.

See Also 
ObjectCountSaveSettings, _ObjectCountLoadSettings