% Example of use of the new Field II program running under
% Matlab.
%
% This example shows how a linear array B-mode system scans an image
%
% This script assumes that the field_init procedure has been called
% Here the field simulation is performed and the data is stored
% in rf-files; one for each rf-line done. The data must then
% subsequently be processed to yield the image. The data for the
% scatteres are read from the file pht_data.mat, so that the procedure
% can be started again or run for a number of workstations.
%
% Example by Joergen Arendt Jensen and Peter Munk,
% Version 1.2, August 14, 1998, JAJ.
% Ver. 1.1: 1/4-98: Procedure xdc_focus_center inserted to use the new
% focusing scheme for the Field II program
% Ver. 2.0: 13/8 2007: Parallel version that checks whether the simulation
% of a line has been made before, which makes it possible
% to run the code in parallel on multiple workstations.
% Generate the transducer apertures for send and receive
f0=3.5e6; % Transducer center frequency [Hz]
fs=100e6; % Sampling frequency [Hz]
c=1540; % Speed of sound [m/s]
lambda=c/f0; % Wavelength [m]
width=lambda; % Width of element
element_height=5/1000; % Height of element [m]
kerf=0.05/1000; % Kerf [m]
focus=[0 0 70]/1000; % Fixed focal point [m]
N_elements=192; % Number of physical elements
N_active=64; % Number of active elements
% Set the sampling frequency
set_sampling(fs);
% Generate aperture for emission
xmit_aperture = xdc_linear_array (N_elements, width, element_height, kerf, 1, 10,focus);
% Set the impulse response and excitation of the xmit aperture
impulse_response=sin(2*pi*f0*(0:1/fs:2/f0));
impulse_response=impulse_response.*hanning(max(size(impulse_response)))';
xdc_impulse (xmit_aperture, impulse_response);
excitation=sin(2*pi*f0*(0:1/fs:2/f0));
xdc_excitation (xmit_aperture, excitation);
% Generate aperture for reception
receive_aperture = xdc_linear_array (N_elements, width, element_height, kerf, 1, 10,focus);
% Set the impulse response for the receive aperture
xdc_impulse (receive_aperture, impulse_response);
% Load the computer phantom
if ~exist('pht_data.mat')
disp('Scatterer positions should be made by the script mk_pht')
disp('before this script can be run')
return
else
load pht_data
end
% Set the different focal zones for reception
focal_zones=[30:20:200]'/1000;
Nf=max(size(focal_zones));
focus_times=(focal_zones-10/1000)/1540;
z_focus=60/1000; % Transmit focus
% Set the apodization
apo=hanning(N_active)';
% Do linear array imaging
no_lines=50; % Number of lines in image
image_width=40/1000; % Size of image sector
d_x=image_width/no_lines; % Increment for image
% Do imaging line by line
for i=[1:no_lines]
% Test if the file for the line exist.
% Skip the simulation, if the line exits and
% go the next line. Else make the simulation
file_name=['rf_data/rf_ln',num2str(i),'.mat'];
if ~exist(file_name)
% Save a file to reserve the calculation
cmd=['save rf_data/rf_ln',num2str(i),'.mat i'];
eval(cmd);
disp(['Now making line ',num2str(i)])
% The the imaging direction
x= -image_width/2 +(i-1)*d_x;
% Set the focus for this direction with the proper reference point
xdc_center_focus (xmit_aperture, [x 0 0]);
xdc_focus (xmit_aperture, 0, [x 0 z_focus]);
xdc_center_focus (receive_aperture, [x 0 0]);
xdc_focus (receive_aperture, focus_times, [x*ones(Nf,1), zeros(Nf,1), focal_zones]);
% Calculate the apodization
N_pre = round(x/(width+kerf) + N_elements/2 - N_active/2);
N_post = N_elements - N_pre - N_active;
apo_vector=[zeros(1,N_pre) apo zeros(1,N_post)];
xdc_apodization (xmit_aperture, 0, apo_vector);
xdc_apodization (receive_aperture, 0, apo_vector);
% Calculate the received response
[rf_data, tstart]=calc_scat(xmit_aperture, receive_aperture, phantom_positions, phantom_amplitudes);
% Store the result
cmd=['save rf_data/rf_ln',num2str(i),'.mat rf_data tstart'];
disp(cmd)
eval(cmd);
else
disp(['Line ',num2str(i),' is being made by another machine.'])
end
end
% Free space for apertures
xdc_free (xmit_aperture)
xdc_free (receive_aperture)
disp('You should now run make_image to display the image')
没有合适的资源?快使用搜索试试~ 我知道了~
囊肿模型.rar_buildd2l_cyst_phant_pooriru
共61个文件
mat:51个
m:6个
fig:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 5 浏览量
2022-07-15
14:23:05
上传
评论 1
收藏 25.88MB RAR 举报
温馨提示
cyst model of shape,volume,ashen
资源推荐
资源详情
资源评论
收起资源包目录
囊肿模型.rar (61个子文件)
囊肿模型
cyst_phantom_example.tar.gz 3KB
field.m 255B
sim_img.m 5KB
cyst_pht.m 3KB
make_image.m 2KB
show.m 63B
Figure2.fig 9.75MB
rf_data
rf_ln11.mat 72KB
rf_ln31.mat 70KB
rf_ln28.mat 69KB
rf_ln18.mat 70KB
rf_ln42.mat 73KB
rf_ln14.mat 72KB
rf_ln47.mat 74KB
rf_ln12.mat 72KB
rf_ln1.mat 75KB
rf_ln23.mat 69KB
rf_ln49.mat 75KB
rf_ln37.mat 71KB
rf_ln20.mat 70KB
rf_ln46.mat 74KB
rf_ln24.mat 69KB
rf_ln4.mat 74KB
rf_ln45.mat 74KB
rf_ln39.mat 72KB
rf_ln38.mat 72KB
rf_ln30.mat 69KB
rf_ln50.mat 75KB
rf_ln27.mat 69KB
rf_ln35.mat 71KB
rf_ln32.mat 70KB
rf_ln8.mat 73KB
rf_ln9.mat 73KB
rf_ln16.mat 71KB
rf_ln19.mat 70KB
rf_ln25.mat 69KB
rf_ln17.mat 71KB
rf_ln2.mat 75KB
rf_ln15.mat 71KB
rf_ln26.mat 68KB
rf_ln29.mat 69KB
rf_ln7.mat 73KB
rf_ln21.mat 70KB
rf_ln40.mat 72KB
rf_ln43.mat 73KB
rf_ln5.mat 74KB
rf_ln44.mat 73KB
rf_ln3.mat 75KB
rf_ln22.mat 69KB
rf_ln13.mat 72KB
rf_ln36.mat 71KB
rf_ln41.mat 73KB
rf_ln34.mat 70KB
rf_ln6.mat 74KB
rf_ln48.mat 74KB
rf_ln33.mat 70KB
rf_ln10.mat 73KB
Figure1.fig 9.69MB
pht_data.mat 2.9MB
Figure2.jpg 23KB
mk_pht.m 253B
共 61 条
- 1
资源评论
钱亚锋
- 粉丝: 88
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 6_Advertising-gd_LearningRate.ipynb
- BrushNet电商公司和摄影公司都在用的AI工作流
- 12_base.apk
- 520马上到了两款动态爱心表白HTML代码(附源码)李峋同款爱心,快送给你爱的她或(他)吧12 情侣纪念日代码.zip
- 电子设计竞赛的单相不间断电源设计
- cutcamera1715961370938.png
- 基于MATLAB的图像处理课程设计报告.doc
- tensorflow-gpu-2.6.0-cp38-cp38-manylinux2010-x86-64.whl
- mmexport1715960553858.png
- tensorflow-gpu-2.6.0-cp37-cp37m-manylinux2010-x86-64.whl
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功