Contrast-to-Noise Ratio (CNR) is a crucial metric in image processing, medical imaging, and other signal analysis fields. It quantifies how well an object of interest (signal) can be distinguished from the background noise. CNR is an enhancement over the signal-to-noise ratio (SNR) as it takes into account both the contrast between the object and its background and the noise level.
Definition:
CNR can be defined as:
$$
\text{CNR} = \frac{|\mu_{\text{signal}} - \mu_{\text{background}}|}{\sigma_{\text{background}}}
$$
where:
- $\mu_{\text{signal}}$ is the mean intensity value of the region of interest (signal),
- $\mu_{\text{background}}$ is the mean intensity value of the background region,
- $\sigma_{\text{background}}$ is the standard deviation of the background noise.
Components Explained:
- Mean Intensity Values ( $\mu_{\text{signal}}$ and $\mu_{\text{background}}$ ):
- Represent the average pixel values within the signal and background regions, respectively.
- Standard Deviation of Background Noise ( $\sigma_{\text{background}}$ ):
- Represents the variability or spread of the pixel values in the background, indicating the level of noise present.
Importance of CNR:
- Image Quality Assessment: CNR is used to evaluate how distinct a target (such as a lesion in medical imaging) is compared to its background.
- Optimization of Imaging Systems: A higher CNR indicates better detection capability and image quality, which can help fine-tune parameters for medical imaging devices, microscopes, and cameras.
- Comparison Across Images: CNR provides a way to compare the quality of images obtained under different conditions or with different imaging setups.
How to Measure CNR:
- Select the Regions of Interest (ROIs):
- Identify the area representing the signal (e.g., an object or region of interest in the image).
- Identify a region representing the background noise.
- Calculate Mean Intensity Values:
- Compute $\mu_{\text{signal}}$ by averaging the pixel values within the signal ROI.
- Compute $\mu_{\text{background}}$ by averaging the pixel values within the background ROI.
- Calculate Standard Deviation of Background Noise:
- Compute \( \sigma_{\text{background}} \) as the standard deviation of pixel values in the background ROI.
- Compute CNR:
- Plug the calculated values into the CNR formula to obtain the result.