refactor: 项目目录结构重组

- 中文目录名改为英文:cDNA图像处理实例→examples,参考资料→references
- web→app(Flask应用标准命名)
- 输出目录平移到 data/output/simple/ 和 data/output/full/
- 输入图像统一到 data/input/
- 构建脚本移到 scripts/
- 源码文件改用 snake_case 命名
- 更新所有文件路径引用和文档
This commit is contained in:
2026-07-16 20:59:58 +08:00
parent a720845948
commit 3ca079a980
100 changed files with 98 additions and 71 deletions
+33
View File
@@ -0,0 +1,33 @@
function Lnew=choosemaxobj(L_old,night)
%%4,8
%%
L = bwlabel(L_old,night);
%%
STATS = regionprops(L,'Area');
%%
area=[STATS.Area];
area_max=max(area);
if area_max>20 %2020
%%
area_num=find(area==area_max);
%%
if(length(area_num)>1)
Lnew=(L==area_num(1,1));
else
Lnew=(L==area_num);
end
else
Lnew=0;
end
% LL = bwlabel(Lnew,8);
% %%
% STATSLnew = regionprops(LL,'Area');
% %%
% areanew=[STATSLnew.Area]