# Convert pixel/grayscale values ​​to decibels

9 views (last 30 days)
ESTER LIMA on 1 Mar 2024
Commented: William Rose on 4 Mar 2024
I would like to know how to convert uniformity in ultrasound images into decibels.
I found that uniformity testing procedures involve several steps:
1. Apply coupling gel to the scanning surface.
2. Position the transducer of the standard ultrasound system above a phantom region without targets, only containing a speckle pattern.
3. Adjust instrument settings individually in the ultraosund equipament
4. Freeze one image for each setting combination and obtain a hard copy.
5. Perform computer analysis by placing a series of 4 small ROI (Region of Interest) along the axial direction. Compute the average pixel value (PV̅̅̅̅i, i=1,...,4) in each ROI. Calculate the difference between the average pixel values of the two quadrants with the highest (MAX(PV̅̅̅̅i)) and lowest (min(PV̅̅̅̅i)) average pixel values, recording this result as the uniformity parameter:U = MAX(PV̅̅̅̅i) - min(PV̅̅̅̅i)This parameter represents the maximum variation of mean grey levels among discrete quadrants. To compare results with tolerance limits suggested by international standards, uniformity is converted to the decibel scale (how?).
In the following image, we have an example of automatic selection of ROIs on MATLAB for image uniformity assessment.
Any help is welcome!

William Rose on 2 Mar 2024
@ESTER LIMA, given two levels, PVmin and PVmax, whose values are proportional to the intensity of the ultrasound signal, the decibel difference is
10*log(PVmax/PVmin)
I used a factor of 10 above, not 20, because I assumed the gray level is proportional to intensity rather than amplitude. If the gray level is proportional to amplitude, then the dB value is
20*log(PVmax/PVmin)
There is a reasonable chance that the actual grayscale value is not proportional to either amplitude or intensity, because the user can adjust image gain and contrast. This creates a nonlinear mapping from amplitude (or intensity) to gray level. Ultrasound devices may use proprietary or public domain algorithms to map from intensity to gray scale. Matlab's histeq() is an example of a public algorithm for this purpose. In such cases, I would use the actual ultrasound intensity ratio, and the fomula above with "10", for the dB difference. But I can't tell you how to extract the intensity from the grayscale level. You would have to know more about the machine's grayscale mapping.
ESTER LIMA on 2 Mar 2024
DICOM format is essential in medicine for securely storing and sharing standardized medical imaging data, allowing efficient analysis and diagnosis across different imaging modalities.
Anyway, I just uploaded to the folder using the same link, both images in PNG format.
William Rose on 4 Mar 2024
@ESTER LIMA, I'm afraid I do not have more time to work on this problem. Good luck with your analysis.