diff --git a/results_simple/flowchart.drawio b/results_simple/flowchart.drawio index 1da79f3..8a38c2a 100644 --- a/results_simple/flowchart.drawio +++ b/results_simple/flowchart.drawio @@ -1,130 +1,107 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/results_simple/test001_01_grid.png b/results_simple/test001_01_grid.png new file mode 100644 index 0000000..6d49074 Binary files /dev/null and b/results_simple/test001_01_grid.png differ diff --git a/results_simple/test001_02_col.png b/results_simple/test001_02_col.png new file mode 100644 index 0000000..ea0fc2e Binary files /dev/null and b/results_simple/test001_02_col.png differ diff --git a/results_simple/test001_03_binary.png b/results_simple/test001_03_binary.png new file mode 100644 index 0000000..e801249 Binary files /dev/null and b/results_simple/test001_03_binary.png differ diff --git a/results_simple/test_01_grid.png b/results_simple/test_01_grid.png new file mode 100644 index 0000000..ba32b2f Binary files /dev/null and b/results_simple/test_01_grid.png differ diff --git a/results_simple/test_02_col.png b/results_simple/test_02_col.png new file mode 100644 index 0000000..db0c5af Binary files /dev/null and b/results_simple/test_02_col.png differ diff --git a/results_simple/test_03_binary.png b/results_simple/test_03_binary.png new file mode 100644 index 0000000..d32bddd Binary files /dev/null and b/results_simple/test_03_binary.png differ diff --git a/src/cDNA_gridding_simple.py b/src/cDNA_gridding_simple.py index bc266f4..bdf1cac 100644 --- a/src/cDNA_gridding_simple.py +++ b/src/cDNA_gridding_simple.py @@ -193,7 +193,9 @@ def keep_largest_object(binary: np.ndarray) -> np.ndarray: max_idx = int(np.argmax(areas)) + 1 return (labeled == max_idx).astype(np.uint8) - +# ================================================================ +# 函数4:自动去除小连通域(噪声) +# ================================================================ def remove_small_objects(binary: np.ndarray) -> np.ndarray: """ 自动去除小连通域(噪声)。