r/computervision • u/HotelUnlikely608 • 43m ago
Discussion How can I improve the clarity of PCB X-ray images without losing fine details?
Hi everyone,
I’m working on an industrial X-ray inspection application for PCBs. My input is a 16-bit grayscale TIFF from a flat-panel detector. In some images, the edges of components and solder joints look soft, and faint details inside them, such as small voids, are hard to see.
I’ve tried averaging multiple frames and adjusting the display window. Frame averaging reduces the graininess, but some component edges and internal details are still difficult to make out. Ideally, I’d like to enhance the entire image so PCB traces, component boundaries, and details inside solder joints are easier to inspect. Preserving the shape and size of small defects is important because we also use these images for measurement.
For anyone who has worked with industrial X-ray images:
- What processing methods have worked well for reducing noise, sharpening edges, and bringing out faint details in dense or low-contrast areas?
- Are there any traditional image-processing pipelines or learned restoration models you’ve had good results with on real X-ray data?
- How do you tell whether the detail is recoverable through processing or whether you need a better capture to begin with?
I can share a sample image and a few close-up crops if helpful. I’d appreciate any advice, example results, or references. Thanks!


