How to plot breast tumor images in Matlab using CST simulation data?

I want to plot microwave breast tumor images in Matlab using the simulated data from CST. After simulation of breast phantom, I have extracted the S21 data in a text file. Now, I want to plot breast tumor (contour) images using these data. Here are some sample lines of the text file:
32.000000000000 0.0015011859359220 0.00053002429194748
32.001998901367 0.0015034938696772 0.00052726920694113
32.004001617432 0.0015057984273881 0.00052450562361628
32.006000518799 0.0015080997254699 0.00052173377480358
32.007999420166 0.0015103977639228 0.00051895360229537
Also, I am attaching a reference breast tumor image. Please help me to plot similar type of images using these data. I will be grateful for any of your suggestions.

1 commentaire

I also working on same problem to create a breast cancer image by using IFFT of S11 curve data from VNA.by using MATLAB CODE. If Anyone knows please helps me Please call me 7678401094

Connectez-vous pour commenter.

Réponses (1)

Is the first column of your sample data Intensity/Color and then columns 2 and 3 are the X and Y range data? You probably want to use the contour or contourf functions, and colorbar to display the colormapping at the side.

1 commentaire

Using contour() or contourf() would rely upon being able to reshape() the X and Y coordinates to rectangular arrays. However, we can see in the sample data that none of the columns have blocks of repeated values. So, the data must represent scattered coordinates, not a subset of rectangular coordinates that have been "flattened"
In order to contour() or contourf() scattered data, you first have to use griddata() or scatteredInterpolant() to generate rectangular grids of data. The main alternative is to use the File Exchange contribution, https://www.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data

Connectez-vous pour commenter.

Catégories

En savoir plus sur Biomedical Imaging dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by