文章目录
APP2
app2见博客
https://blog.csdn.net/jujiyu6446/article/details/102922421
BUJT_fastmarching_spanningtree
原开发者是John Wan BUJT
run_BUJT_FMST.m
function [] = run_BUJT_FMST(fname)
%run_BUJT_FMST BUJT_fastmarching_spanningtree
% 只需要输入文件名
if ~exist(fname,'file')
disp([fname ' file not exist'])
return
end
if exist(fname,'dir')
disp([fname ' is a folder'])
return
end
V3DPath='"D:\V3D\v3d_external\bin\vaa3d_msvc.exe" ';
pluginName='"D:\V3D\v3d_external\bin\plugins\neuron_tracing\BJUT_fastmarching_spanningtree\fastmarching_spanningtree.dll"';
funcName='"tracing_func"';
noshow_file='no_show.txt';
command=[V3DPath ' /x ' pluginName ' /f ' funcName ' /i "' fname '" >> ' noshow_file];
dos(command);
disp(command)
if exist(noshow_file,'file')
delete(noshow_file)
end
end
parafunc_BUJT_FMST.m
%do APP2 in given folder
clc
clear
yourKey='key';
%推送到微信
% 见https://blog.csdn.net/jujiyu6446/article/details/103693819
%方式1
fname = { 'silkmoth4.tif.v3dpbd' ;'silkmoth5.tif.v3dpbd' ;'silkmoth6.tif.v3dpbd' ;'silkmoth7.tif.v3dpbd' ;'zebrafish1.tif.v3dpbd' ;'zebrafish2.tif.v3dpbd' ;'zebrafish3.tif.v3dpbd' ;...
'zebrafish4.tif.v3dpbd' ;'zebrafish5.tif.v3dpbd' ;'zebrafish6.tif.v3dpbd' ;'zebrafish7.tif.v3dpbd' ;};
%方式2
fnameFolder='C:\Users\penglab\Desktop\bugr\';
fileExt = '*.tif'; %待读取图像的后缀名
all_image_name_suffix=dir(fullfile(fnameFolder,fileExt));
fname={all_image_name_suffix.name}';
para=cell(1,size(fname,1));
for i=1:size(fname,1)
para{i}.fname=[fnameFolder fname{mod(floor((i-1)) ,size(fname,1))+1,:}];
end
for j=1:size(para,2)
try
run_BUJT_FMST(para{j}.fname)
catch
disp('error ')
end
end
URL=['https://sc.ftqq.com/' yourKey '.send?text=matlab_over'];
str = urlread(URL)
ENT
原开发者 Ching-Wei Wang
parafunc_ENT
%do ent in given folder
clc
clear
yourKey='key';
%推送到微信
% 见https://blog.csdn.net/jujiyu6446/article/details/103693819
%方式1
fname = { 'silkmoth4.tif.v3dpbd' ;'silkmoth5.tif.v3dpbd' ;'silkmoth6.tif.v3dpbd' ;'silkmoth7.tif.v3dpbd' ;'zebrafish1.tif.v3dpbd' ;'zebrafish2.tif.v3dpbd' ;'zebrafish3.tif.v3dpbd' ;...
'zebrafish4.tif.v3dpbd' ;'zebrafish5.tif.v3dpbd' ;'zebrafish6.tif.v3dpbd' ;'zebrafish7.tif.v3dpbd' ;};
%方式2
fnameFolder='C:\Users\penglab\Desktop\bugr\other\fruitfly1\';
fileExt = '*.v3draw'; %待读取图像的后缀名
all_image_name_suffix=dir(fullfile(fnameFolder,fileExt));
fname={all_image_name_suffix.name}';
para=cell(1,size(fname,1));
for i=1:size(fname,1)
para{i}.fname=[fnameFolder fname{mod(floor((i-1)) ,size(fname,1))+1,:}];
end
for j=1:size(para,2)
try
run_ENT(para{j}.fname)
catch
disp('error ')
end
end
URL=['https://sc.ftqq.com/' yourKey '.send?text=matlab_over'];
str = urlread(URL)
run_ENT.m
function [] = run_ENT(fname)
%run_ENT Ching-Wei Wang
% 只需要输入文件名
if ~exist(fname,'file')
disp([fname ' file not exist'])
return
end
if exist(fname,'dir')
disp([fname ' is a folder'])
return
end
V3DPath='"D:\V3D\v3d_external\bin\vaa3d_msvc.exe" ';
pluginName='"D:\V3D\v3d_external\bin\plugins\neuron_tracing\ENT\ENT.dll"';
funcName='"tracing_func"';
noshow_file='no_show.txt';
command=[V3DPath ' /x ' pluginName ' /f ' funcName ' /i "' fname '" >> ' noshow_file];
dos(command);
disp(command)
if exist(noshow_file,'file')
delete(noshow_file)
end
end
MOST
原开发者 Jingpeng Wu
parafunc_MOST
%do MOST in given folder
clc
clear
yourKey='key';
%推送到微信
% 见https://blog.csdn.net/jujiyu6446/article/details/103693819
threshold = 30:5:40;
%方式1
fname = {'BN5_5.tif' ;};
%方式2
fnameFolder='C:\Users\penglab\Desktop\bugr\other\fruitfly1\';
fileExt = '*.v3draw'; %待读取图像的后缀名
all_image_name_suffix=dir(fullfile(fnameFolder,fileExt));
fname={all_image_name_suffix.name}';
para=cell(1,size(threshold,2)*size(fname,1));
for i=1:size(threshold,2)*size(fname,1)
para{i}.threshold=threshold( mod( (i-1),size(threshold,2) ) +1);
para{i}.fname=[fnameFolder fname{mod(floor((i-1)/size(threshold,2)) ,size(fname,1))+1,:}];
end
for j=1:size(para,2)
try
run_MOST(para{j}.fname,para{j}.threshold)
catch
disp('error ')
end
end
if ~strcmp(yourKey,'key')
URL=['https://sc.ftqq.com/' yourKey '.send?text=matlab_over'];
urlread(URL)
end
run_MOST
function [] = run_MOST(fname,threshold)
%run_MOST MOST Jingpeng Wu
if ~exist(fname,'file')
disp([fname ' file not exist'])
return
end
if exist(fname,'dir')
disp([fname ' is a folder'])
return
end
V3DPath='"D:\V3D\v3d_external\bin\vaa3d_msvc.exe" ';
pluginName='"D:\V3D\v3d_external\bin\plugins\neuron_tracing\MOST_tracing\mostVesselTracer.dll"';
funcName='"MOST_trace"';
channel='"1"' ;
noshow_file='no_show.txt';
command=[V3DPath ' /x ' pluginName ' /f ' funcName ' /i "' fname '" /p ' channel ' ' num2str(threshold) ' >> ' noshow_file]
dos(command);
disp(command)
if exist(noshow_file,'file')
delete(noshow_file)
end
end
TreMap (注意,暂不可用)
因为windows不能运行tremap 所以没有测试能不能运行
大概率是不能运行的,需要改
parafunc_TReMap
%do TreMap in given folder
clc
clear
yourKey='key';
%推送到微信
% 见https://blog.csdn.net/jujiyu6446/article/details/103693819
threshold = 30;
%方式1
fname = {'BN5_5.tif' ;};
%方式2
fnameFolder='C:\Users\penglab\Desktop\bugr\other\fruitfly1\';
fileExt = '*.v3draw'; %待读取图像的后缀名
all_image_name_suffix=dir(fullfile(fnameFolder,fileExt));
fname={all_image_name_suffix.name}';
para=cell(1,size(threshold,2)*size(fname,1));
for i=1:size(threshold,2)*size(fname,1)
para{i}.threshold=threshold( mod( (i-1),size(threshold,2) ) +1);
para{i}.fname=[fnameFolder fname{mod(floor((i-1)/size(threshold,2)) ,size(fname,1))+1,:}];
end
for j=1:size(para,2)
try
run_TReMAP(para{j}.fname,para{j}.threshold)
catch
disp('error ')
end
end
if ~strcmp(yourKey,'key')
URL=['https://sc.ftqq.com/' yourKey '.send?text=matlab_over'];
urlread(URL)
end
run_TReMAP
function [] = run_TReMAP(fname,threshold,b_256cube)
%run_TReMAP zhouzhi
if ~exist(fname,'file')
disp([fname ' file not exist'])
return
end
if exist(fname,'dir')
disp([fname ' is a folder'])
return
end
V3DPath='"D:\V3D\v3d_external\bin\vaa3d_msvc.exe" ';
pluginName='"D:\V3D\v3d_external\bin\plugins\neuron_tracing\TReMap\neurontracing_mip.dll"';
funcName='"trace_mip"';
MIP_PLANE='"0"';
channel='"1"' ;
if ~exist('threshold', 'var') || isempty(threshold)
% opt_normalize 参数为空,或者不以变量的形式存在;
threshold='10';
end
if ~exist('b_256cube', 'var') || isempty(b_256cube)
% opt_normalize 参数为空,或者不以变量的形式存在;
b_256cube='0';
end
%b_256cube means auto-downsampled
noshow_file='no_show.txt';
command=[V3DPath ' /x ' pluginName ' /f ' funcName ' /i "' fname '" /p ' MIP_PLANE ' ' channel ' "' num2str(threshold) '" "' b_256cube '" ' ' >> ' noshow_file];
dos(command);
disp(command)
if exist(noshow_file,'file')
delete(noshow_file)
end
end