How to digitise ultrasound doppler waveform image (.png) into csv file?

Hi all, I know there's a manual way of doing this by using automeris.io (a website that digitise images into data), however, I would like to automate the entire process. So far I'm able to automate and find X-axis and Y-axis, but I'm stuck at digitising the waveform to csv format. I have attached the manually extracted data point and automated failed version to this post.

4 Comments

Search the File Exchange tag "digitize"
However, getting the scale correct automatically looks to be a challenge.
Yeah, i've tried it but i think it's mainly for graphs with lines etc. I've tried using the RGB of the waveform and plot it but it's not working too well.
I'm not sure which part(s) of that image you want to get the values of and export to a CSV text file. What I would do is first see if the program that you took this screenshot from has any kind of exporting capabilities. It probably does. Other than that try to simplify the image as much as possible (no graphics), and then crop out the part you want to digitize, and then start from there. Of course calibrating the (x,y) values is probably going to have to be by hand entry.
Thanks for the idea! I've solved the issue which was related to the smoothing and I was able to reduce it where it reads the waveform properly. For x and y, i just hard coded them using its pixel coordinate since all the US doppler images I'm dealing with has the same dimension.

Sign in to comment.

Answers (0)

Asked:

on 27 Jul 2025

Commented:

on 28 Jul 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!