How to plot breast tumor images in Matlab using CST simulation data?
Mostra commenti meno recenti
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 Commento
JITENDRA
il 10 Dic 2024
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
Risposte (1)
Benjamin Thompson
il 14 Feb 2022
0 voti
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 Commento
Walter Roberson
il 10 Dic 2024
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
Categorie
Scopri di più su Biomedical Imaging in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!