This document presents a method for enhancing X-ray images using Contrast Limited Adaptive Histogram Equalization (CLAHE). CLAHE improves local contrast and edge definition by applying histogram equalization separately to small regions of the image rather than the entire image. It prevents overamplification of noise that can occur with adaptive histogram equalization. The proposed method uses an image processing filter chain including noise reduction, high pass filtering, and CLAHE to enhance 2D X-ray images. Key parameters of the filter chain are optimized using an interior point algorithm. The goal is to provide customized tissue contrast for each treatment location to allow for accurate patient setup and analysis in radiation therapy. The CLAHE method is shown to effectively enhance contrast in X-