Published April 30, 2025
| Version 1.0
Software
Open
A MATLAB code for analyzing the distribution of CH distribution in C3S paste
Description
A MATLAB code for analyzing the distribution of CH distribution in C3S paste
Core Functionality
-
Circle Detection via Monte Carlo Simulation
- Generates
num_simulations
random circles within the image boundaries using uniform sampling - Calculates pixel intensity sums within each circle's radius
- Ranks circles by pixel coverage and retains top
num_circles_to_keep
candidates
- Generates
-
Spatial Distribution Analysis
- Distance Matrix: Computes pairwise Euclidean distances between circle centers
- Uniformity Metrics:
- Average Nearest Neighbor Distance: Quantifies spatial clustering
- Clark-Evans Index: Tests randomness hypothesis (value >1 indicates uniformity)
- Moran's I: Measures spatial autocorrelation (requires custom spatial weights)
- Average Nearest Neighbor Distance: Quantifies spatial clustering
- Distance Matrix: Computes pairwise Euclidean distances between circle centers
-
Visualization
- Overlays detected circles on original/image masks using
viscircles
- Plots center distributions via scatter plots with axis equalization
- Overlays detected circles on original/image masks using
Input/Output Specifications
Parameter | Description |
---|---|
image |
Binary matrix (0-1 values) |
radius |
Pixel radius of target circles |
num_circles_to_keep |
Top-ranked circles by intensity summation |
Output circle_centers |
Coordinates matrix [X,Y] of optimal circles |
Files
WS03_28DAYS_DnCNN_CH_binary.png
Files
(83.1 kB)
Name | Size | Download all |
---|---|---|
md5:5145d1d77e7e589875f2cb9f2455e7ae
|
7.3 kB | Download |
md5:ab3e15f3a426a382101ffcedc9d51129
|
75.8 kB | Preview Download |