Open soutobias opened 3 months ago
For histogram matching, what would be the reference image?
for high resolution images, rolling ball is slow, need to optimize the code or resize image before processing
@Mojtabamsd , I apply some changes on your code on the develop branch. Please take a look and see if everything is fine
What:
Illumination correction addresses uneven lighting in images to ensure uniform light distribution. This is crucial in underwater imaging, where uneven lighting is common due to lens vignetting and light source positioning. Lens vignetting reduces brightness towards the edges of an image, caused by lens design flaws, focal length, or aperture settings. Uneven light source positioning in underwater vehicles, like AUVs or ROVs, creates high-brightness spots near the light source and darker areas elsewhere, affecting color accuracy and overall image quality.
Why:
Proper illumination correction is essential for accurate image analysis and interpretation. Inconsistent lighting can distort colors, obscure details, and hinder the evaluation of underwater scenes. Correcting illumination helps standardize images, making them more suitable for tasks such as biodiversity assessment, species identification, and visual documentation.
How:
Illumination correction can be achieved through various techniques:
Background Subtraction:
Histogram Matching:
Retinex Algorithms:
Python Code Examples:
Median Filtering for Background Subtraction:
Histogram Matching:
Retinex Algorithm (Simple Implementation):
What to expect:
The result will be an image with improved and more uniform illumination. Corrected images will show a more consistent light distribution with reduced brightness gradients and better visual clarity, allowing for clearer and more accurate analysis of image details.
What makes it difficult:
Dynamic Lighting: Varying lighting conditions across different images or within a single image can complicate correction efforts, making it challenging to achieve uniform results.
Information Loss: Over-aggressive correction may lead to loss of important image details, potentially flattening the image and reducing its informational value.
Algorithm Tuning: Different algorithms and parameters may be needed based on specific lighting conditions and image characteristics, requiring careful tuning for optimal results.
Success Metrics:
Uniformity of Light Distribution: Successful illumination correction will result in an evenly lit image with minimal overexposed or underexposed areas.
Detail Preservation: Enhanced images should maintain important details while providing a clear and consistent view of all features, ensuring that the visual information remains intact and useful for analysis.