Record Class BatchFaceRegistrationConfig
java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.face.batch.registration.BatchFaceRegistrationConfig
- Record Components:
regStrategy
- Registration strategy. IfNONE
, then only the average face is computed. It can be useful if the faces are already registered.avgFaceStrategy
- Strategy of the average face metamorphose. IfNONE
, then thetemplateFace
is not transformed into the average face.scale
- Iftrue
, then the registered faces can be scaled during the registration. Otherwise, they are only rotated and translated.icpSubsampling
- Subsampling strength (the number of samples). This parameter is used only forICP
registration.icpError
- Minimal error forICP
registration. This parameter is used only forICP
registration.icpIterations
- Maximum number of ICP iterations. This parameter is used only forICP
registration.icpAutoCropSince
- Use auto-crop feature since the given ICP iteration. Use zero to use it always. This parameter is used only forICP
registration.glContext
- OpenGl context. Must not benull
for thePROJECTION_GPU
average face strategy. Is ignored for other strategies.
public record BatchFaceRegistrationConfig(BatchFaceRegistrationServices.RegistrationStrategy regStrategy, BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling, double icpError, int icpIterations, int icpAutoCropSince, com.jogamp.opengl.GLContext glContext)
extends Record
Configuration object for the batch registration service.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchFaceRegistrationConfig
(BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling) Simplified constructor for the ICP registration strategy withicpError
set to 0.05,icpIterations
set to 100, andicpAutoCropSince
set to 1.BatchFaceRegistrationConfig
(BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling, double icpError, int icpIterations, int icpAutoCropSince) Simplified constructor for the ICP registration strategy.BatchFaceRegistrationConfig
(BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, com.jogamp.opengl.GLContext glContext) Simplified constructor for the GPA registration strategy.BatchFaceRegistrationConfig
(BatchFaceRegistrationServices.RegistrationStrategy regStrategy, BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling, double icpError, int icpIterations, int icpAutoCropSince, com.jogamp.opengl.GLContext glContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgFaceStrategy
record component.final boolean
Indicates whether some other object is "equal to" this one.com.jogamp.opengl.GLContext
Returns the value of theglContext
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theicpAutoCropSince
record component.double
icpError()
Returns the value of theicpError
record component.int
Returns the value of theicpIterations
record component.int
Returns the value of theicpSubsampling
record component.Returns the value of theregStrategy
record component.boolean
scale()
Returns the value of thescale
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BatchFaceRegistrationConfig
public BatchFaceRegistrationConfig(BatchFaceRegistrationServices.RegistrationStrategy regStrategy, BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling, double icpError, int icpIterations, int icpAutoCropSince, com.jogamp.opengl.GLContext glContext) Constructor.- Parameters:
regStrategy
- Registration strategy. IfNONE
, then only the average face is computed. It can be useful if the faces are already registered.avgFaceStrategy
- Strategy of the average face metamorphose. IfNONE
, then thetemplateFace
is not transformed into the average face.scale
- Iftrue
, then the registered faces can be scaled during the registration. Otherwise, they are only rotated and translated.icpSubsampling
- Subsampling strength (the number of samples). This parameter is used only forICP
registration.icpError
- Minimal error forICP
registration. This parameter is used only forICP
registration.icpIterations
- Maximum number of ICP iterations. This parameter is used only forICP
registration.icpAutoCropSince
- Use auto-crop feature since the given ICP iteration. Use zero to use it always. This parameter is used only forICP
registration.glContext
- OpenGl context. Must not benull
for thePROJECTION_GPU
average face strategy. Is ignored for other strategies.
-
BatchFaceRegistrationConfig
public BatchFaceRegistrationConfig(BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, com.jogamp.opengl.GLContext glContext) Simplified constructor for the GPA registration strategy.- Parameters:
avgFaceStrategy
- Strategy of the average face metamorphose. IfNONE
, then thetemplateFace
is not transformed into the average face.scale
- Iftrue
, then the registered faces can be scaled during the registration. Otherwise, they are only rotated and translated.glContext
- OpenGl context. Must not benull
-
BatchFaceRegistrationConfig
public BatchFaceRegistrationConfig(BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling, double icpError, int icpIterations, int icpAutoCropSince) Simplified constructor for the ICP registration strategy.- Parameters:
avgFaceStrategy
- Strategy of the average face metamorphose. IfNONE
, then thetemplateFace
is not transformed into the average face.scale
- Iftrue
, then the registered faces can be scaled during the registration. Otherwise, they are only rotated and translated.icpSubsampling
- Subsampling strength (the number of samples).icpError
- Minimal error forICP
registration.icpIterations
- Maximum number of ICP iterations.icpAutoCropSince
- Use auto-crop feature since the given ICP iteration. Use zero to use it always.
-
BatchFaceRegistrationConfig
public BatchFaceRegistrationConfig(BatchFaceRegistrationServices.AverageFaceStrategy avgFaceStrategy, boolean scale, int icpSubsampling) Simplified constructor for the ICP registration strategy withicpError
set to 0.05,icpIterations
set to 100, andicpAutoCropSince
set to 1.- Parameters:
avgFaceStrategy
- Strategy of the average face metamorphose. IfNONE
, then thetemplateFace
is not transformed into the average face.scale
- Iftrue
, then the registered faces can be scaled during the registration. Otherwise, they are only rotated and translated.icpSubsampling
- Subsampling strength (the number of samples).
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
regStrategy
Returns the value of theregStrategy
record component.- Returns:
- the value of the
regStrategy
record component
-
avgFaceStrategy
Returns the value of theavgFaceStrategy
record component.- Returns:
- the value of the
avgFaceStrategy
record component
-
scale
public boolean scale()Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-
icpSubsampling
public int icpSubsampling()Returns the value of theicpSubsampling
record component.- Returns:
- the value of the
icpSubsampling
record component
-
icpError
public double icpError()Returns the value of theicpError
record component.- Returns:
- the value of the
icpError
record component
-
icpIterations
public int icpIterations()Returns the value of theicpIterations
record component.- Returns:
- the value of the
icpIterations
record component
-
icpAutoCropSince
public int icpAutoCropSince()Returns the value of theicpAutoCropSince
record component.- Returns:
- the value of the
icpAutoCropSince
record component
-
glContext
public com.jogamp.opengl.GLContext glContext()Returns the value of theglContext
record component.- Returns:
- the value of the
glContext
record component
-