Laplacian of Gaussian (LoG) of the ultrasound image in CSV format

1 次查看(过去 30 天)
Hello,
I want to use Laplacian of Gaussian for the shadowing characteristics in the ultrasound image in CSV format to enhance bone surface contrast. Each number in the CSV file represents an image pixel value of the ultrasound image. I am trying to devlop a code that implements a shadow-based bone enhancement algorithm and apply the algorithm to the sample data (such as the data provided) and create images of the pre- and post- filtered image. I would be grateful if anyone could help.
Thank You.

回答(1 个)

Rajani Mishra
Rajani Mishra 2020-3-9
There are two steps required :
1) Converting data from CSV file to matrix format
2) Reading that matrix and applying Laplacian of Gaussian filter
1. Converting data from CSV file to matrix format
A = readmatrix(filename);
This will load data from CSV file to a matrix. For more information refer to below link: https://www.mathworks.com/help/matlab/ref/readmatrix.html
2.Reading that matrix and applying Laplacian of Gaussian filter
  • Use "fspecial" function to create Laplacian of Gaussian filter. Pass value of input argument “type” as “log” for creating Laplacian of Gaussian filter. For example:
Log_filter = fspecial('log', [5,5], 4.0);
For more information please refer to the below link:
There is a similar code for performing Laplacian of Gaussian filtering in below link:

类别

Help CenterFile Exchange 中查找有关 Biomedical Imaging 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by