Skip to main content
. 2019 Mar 27;21(4):329. doi: 10.3390/e21040329
Algorithm 2 Algorithm for normalizing a CSD-map
Require:
 The original CSD-map image: OM
 The width of the normalized CSD-map:w
 The height of the normalized CSD-map:h
Ensure:
 The normalized CSD-map: NM
1: [x,y]=find(OM>0);
2: segm=OM(min(x):max(x),min(y):max(y));
3: NM=imresize(segm,[h,w]);
4: return NM;