Enrollment 28.2.0
Loading...
Searching...
No Matches
IndexedModalitiesGalleryConfig Class Reference

IndexedModalitiesGallery configuration. More...

#include <IndexedModalitiesGallery.h>

Collaboration diagram for IndexedModalitiesGalleryConfig:

Public Member Functions

void SetThreadsCount (unsigned int value)
 Set number of threads used by gallery.
unsigned int GetThreadCount () const
 Get number of processing threads.
void SetGalleryType (IndexedModalitiesGalleryType value)
 Set type of Modalities Gallery.
IndexedModalitiesGalleryType GetGalleryType () const
 Get type of Modalities Gallery.
void WriteTo (Writer &writer) const final
 Function serializes configuration via provided Writer.
 IndexedModalitiesGalleryConfig ()=default
 Default configuration is.

Detailed Description

IndexedModalitiesGallery configuration.

Constructor & Destructor Documentation

◆ IndexedModalitiesGalleryConfig()

Default configuration is.

  • identification threads - 1 thread
  • gallery type - PRINT_ICS_TEMPLATE

References PRINT_ICS_TEMPLATE.

Member Function Documentation

◆ GetGalleryType()

IndexedModalitiesGalleryType GetGalleryType ( ) const
inlinenodiscard

Get type of Modalities Gallery.

Default type is PRINT_ICS_TEMPLATE.

Returns
type of gallery

◆ GetThreadCount()

unsigned int GetThreadCount ( ) const
inlinenodiscard

Get number of processing threads.

Returns
number of threads

◆ SetGalleryType()

void SetGalleryType ( IndexedModalitiesGalleryType value)
inline

Set type of Modalities Gallery.

Default type is PRINT_ICS_TEMPLATE.

Parameters
valuefrom the enum IndexedModalitiesGalleryType
Exceptions
EnrollmentInvalidArgumentExceptionwhen value is not in range of the enum IndexedModalitiesGalleryType

References PRINT_EMBEDDING, and PRINT_ICS_TEMPLATE.

Referenced by ModalitiesGalleryConfig::ToIndexedModalitiesGalleryConfig().

Here is the caller graph for this function:

◆ SetThreadsCount()

void SetThreadsCount ( unsigned int value)
inline

Set number of threads used by gallery.

Note
The 'multithreaded-galleries' feature MUST be allowed in license to allow using threads. Default value is 1.
Parameters
valueit MUST be greater as 0
Exceptions
EnrollmentInvalidArgumentExceptionwhen value is 0

Referenced by ModalitiesGalleryConfig::ToIndexedModalitiesGalleryConfig().

Here is the caller graph for this function:

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlinefinalvirtual

Function serializes configuration via provided Writer.

Parameters
writerused to serialize Config.

Implements Serializable.


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