feat: cDNA微阵列图像处理作业 - Python实现
实现内容: - 网格划分:投影分析 + 自相关估周期 + 白顶帽去背景 + 质心提取 - 三种阈值分割:人工阈值、Otsu自动阈值、迭代阈值 - TV去噪(Chambolle投影算法) - 后处理:去小连通域 + 保留最大连通域 - 完整可视化:网格叠加、阈值对比、收敛曲线、分割结果 参考MATLAB代码:NewGridAndCV/demo_GriddingAndCV.m
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
clc
|
||||
clear
|
||||
close all
|
||||
|
||||
im = imread('cDNA.png');
|
||||
imgray = rgb2gray(im);
|
||||
|
||||
%% sum of row , sum of col
|
||||
sum_col = sum(imgray);
|
||||
sum_row = sum(imgray');
|
||||
|
||||
figure,imshow(imgray)
|
||||
figure,plot(sum_col),title('sum of col');
|
||||
figure,plot(sum_row),title('sum of row');
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
Reference in New Issue
Block a user