Contactless skin lesion recognition presents a useful image-processing challenge: a device must identify features without relying on a probe touching the skin to hold a fixed distance or lighting relationship. Images captured without contact can be affected by external light, vignetting and lens distortion. A proposed five-stage procedure addresses these factors before locating lesion candidates and examining their shadows to distinguish possible concave features, such as pores, from convex ones, such as moles.
The method illustrates how a structured computer-vision pipeline can turn an image into candidate locations and measurable features. Its reported results are preliminary: the evaluation used artificially produced skin images, so the procedure should not be treated as a validated diagnostic system or as a substitute for clinical assessment.
Why contactless skin imaging needs preprocessing
Contact-based skin diagnosis devices can capture images with a stable light source and fixed focal length. However, physical contact can create hygiene and maintenance concerns because the part touching the skin must be kept clean and sterilized. A contactless approach avoids that direct interface, but the camera is more exposed to changes in its imaging environment.
Sunlight or indoor lighting may vary in direction and intensity across the image. Optical effects, including vignetting, lens distortion and chromatic aberration, can also affect the pixels used for analysis. If these differences are not addressed, a dark region caused by illumination or imaging conditions could be mistaken for an abnormal area.
The proposed pipeline therefore begins with image correction and calibration. Color temperature and lens distortion are calibrated, while vignetting and chromatic aberration are corrected where necessary. Basic image properties, including size, resolution and file type, are then obtained for the subsequent processing stages.
Contactless skin lesion recognition in five stages
1. Preprocessing and image characterization
Preprocessing aims to make the image more suitable for analysis by correcting known imaging effects. This is especially important in a contactless setup, where the system cannot depend on physical contact to provide consistent positioning or a controlled light source. The stage also records image properties needed by later operations.
2. Parameter configuration with local brightness
Rather than applying one brightness threshold across the entire image, the procedure divides the image into blocks. It calculates average brightness for each block and uses that value to configure a local threshold. This adaptive approach is intended to account for gradual illumination changes—for example, an image that is brighter near one corner and darker toward the opposite corner.
The threshold is adjusted using a compensation parameter. This provides the basis for separating darker pixels, treated as potential lesion areas, from surrounding skin. The method’s usefulness depends on suitable parameter settings and on the image conditions; local thresholds do not, by themselves, establish that a dark region is a lesion.
3. Abnormal-area separation
Each pixel is compared with the threshold assigned to its image block. Pixels below that threshold are marked as candidate abnormal areas through a black-and-white, or binary, separation step. This produces a simplified image for object detection, rather than requiring the detection algorithm to work directly with every color detail in the original.
4. Lesion candidate detection and shadow analysis
The procedure uses the Circular Hough Transform (CHT) to find dark, approximately circular regions. CHT is appropriate to the described approach because candidate features are expected to have a circular shape. Its output includes the estimated center coordinates and radius of each detected circle.
Shape and darkness alone do not distinguish a depression from a raised feature. The method adds a “Smart Shadow” step that compares brightness at positions above and below a candidate’s center. Under the assumed light direction, the relative placement of darker and brighter areas helps classify candidates as possibly concave or convex. In this way, shadow analysis supplements geometric detection with information about surface relief.
This classification depends on the lighting assumption. If the actual light direction differs from the one used by the procedure, shadow interpretation may be affected. The paper identifies testing under additional lighting strengths, angles and wavelengths as an area for further work.
5. Categorization and visualization
In the final stage, detected candidates are categorized according to the shadow analysis and marked on the image for visual review. Their coordinates and estimated radii can support further analysis, including measurements such as candidate area. Visualization makes it possible to inspect which regions the pipeline has identified, while the measurements provide structured outputs for subsequent evaluation.
What the reported experiment shows—and does not show
The procedure was implemented in MATLAB and evaluated using artificially produced skin images. In the reported example, the initial detection step identified 74 candidate regions. After shadow analysis, 65 were classified as possible pores and eight as possible moles. Some detections overlapped between outputs; these were identified as errors mainly associated with Circular Hough Transform parameter settings.
These results demonstrate how thresholding, circular detection and shadow cues can be combined in a contactless image-analysis workflow. They do not establish performance on a broad set of real-world images, and the reported candidate counts should not be interpreted as measures of clinical accuracy. Further evaluation and more detailed lesion discrimination are needed to generalize the approach.
Practical implications for image-analysis system design
For engineers developing contactless imaging and inspection pipelines, the central lesson is to treat illumination and optics as part of the recognition problem—not as incidental details. Image calibration, local brightness estimation and detection parameters all influence which regions reach the classification stage. Separating the workflow into stages also makes it easier to inspect where an incorrect result may have arisen.
The approach offers a clear progression: correct the image, estimate local conditions, isolate candidate regions, detect their geometry, and use shadow relationships to refine categorization. Its practical value will depend on validation with varied images and lighting conditions, careful parameter selection, and additional decision-making methods for distinguishing lesion types. Until such work establishes broader reliability, the output is best understood as candidate identification for further assessment, not a diagnosis.