The LCS (Local Clarity Score) module measures the local clarity of ridge-valley structures in fingerprint images. It analyzes the sharpness and definition of ridge patterns across local regions to assess overall image quality.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/usnistgov/NFIQ2/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Local Clarity Score evaluates how well-defined and clear the ridge-valley structures are in local neighborhoods of the fingerprint image. Unlike frequency-domain methods, LCS operates in the spatial domain to directly measure ridge clarity based on local gradients and contrast patterns.LCS is particularly sensitive to image sharpness, ridge definition, and local contrast quality. It complements frequency-domain analysis by providing spatial clarity measurements.
Class Definition
Header:quality_modules/LCS.h
Constructor
LCS()
fingerprintImage- Input fingerprint image data at 500 dpi
NFIQ2::Exception- If the image resolution is not 500 dpi
Methods
getName()
"LocalClarity"
Returns: Module name as string
getNativeQualityMeasureIDs()
LCS_Bin10_0throughLCS_Bin10_9- 10 histogram binsLCS_Bin10_Mean- Mean local clarity scoreLCS_Bin10_StdDev- Standard deviation of clarity scores
Quality Features
The LCS module generates 12 quality measures based on local clarity analysis:Histogram Bins (0-9)
The local clarity score is computed for each block in the fingerprint image. These scores are then binned into 10 histogram categories using predefined thresholds:- Lower bins (0-2): Poor clarity, unclear ridge structures
- Middle bins (3-6): Moderate clarity
- Higher bins (7-9): Excellent clarity, well-defined ridges
Statistical Measures
- LCS_Bin10_Mean: Average clarity score across all blocks
- LCS_Bin10_StdDev: Standard deviation indicating clarity consistency
Higher LCS values indicate better ridge clarity and image sharpness. The module requires 500 dpi resolution images.
Configuration
The module uses the following default parameters:| Parameter | Value | Description |
|---|---|---|
blocksize | Sizes::LocalRegionSquare | Block size for local analysis |
threshold | 0.1 | Minimum threshold for valid regions |
scannerRes | 500 | Expected scanner resolution (dpi) |
padFlag | false | Padding disabled for boundary blocks |
Usage Example
Algorithm Details
The LCS algorithm:- Divides the fingerprint image into local blocks
- For each block:
- Computes local gradients and contrast measures
- Analyzes ridge-valley transitions
- Calculates a clarity score based on pattern sharpness
- Creates a histogram distribution of clarity scores
- Computes statistical measures (mean and standard deviation)
Clarity Score Interpretation
- 0.0 - 0.70: Very poor clarity, smudged or unclear patterns
- 0.70 - 0.77: Poor to fair clarity
- 0.77 - 0.83: Moderate clarity, acceptable for some applications
- 0.83 - 0.87: Good clarity, clear ridge structures
- Above 0.87: Excellent clarity, highly defined patterns
Relationship to Other Modules
LCS complements other quality modules:- FDA: While FDA analyzes frequency content, LCS directly measures spatial clarity
- OCL: LCS measures clarity while OCL measures orientation certainty
- Mu: LCS evaluates local sharpness while Mu evaluates overall contrast
Related Modules
- FDA (Frequency Domain Analysis) - Frequency-based quality assessment
- OCL Histogram - Orientation certainty measurement
- Mu - Contrast analysis