clariusdev / solum

APIs for OEMs to Create Standalone Applications
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

ProcessedImage has a white border - How are MicronsPerPixel defined? #64

Open TheChrizZly opened 1 month ago

TheChrizZly commented 1 month ago

Hello, I do get the processed image with the CusNewProcessedImageFn callback. from the imageinfo I get the information that the image size is 640x480. However. Analysing the data, the first and last 22 columns do have the RGBA values: 0,0,0,0, which results in a real image size of 596x480.

a) Can this observation be correct or is there an error in my implementation?

b) How are the micronsPerPixel calculated? On a 640x480 image or on the "real" 596x480 image?

Kind regards, Christian

clariusk commented 1 month ago

makes sense, only the raw data would have ultrasound information for each sample, processed data is scan converted (geometrically interpolated), so you always have dead space when specifying an output resolution (think of a curved probe - majority of top part of image is black)

a) so no, see my above explanation b) it doesn't matter where within the 640x480 you are specifying pixel size, it's always based on microns per pixel (1:1 scaling, so X=Y)