eegkno / ustoolbox

Analysis of the spine from ultrasound images
MIT License
0 stars 0 forks source link

Identify the ROI in the US image automatically #3

Closed eegkno closed 6 years ago

eegkno commented 6 years ago

Check: https://stackoverflow.com/questions/14211340/automatically-cropping-an-image-with-python-pil

1) took the average of the rows and columns; 2) found the gradient of the averaged row and columns, 3) found the spikes at the beginning and end of rows and columns by flagging the gradients larger than three times the standard deviation.