help > a problem of SD and SSD
Showing 1-2 of 2 posts
Display:
Results per page:
Jan 15, 2018  11:01 AM | wang chao
a problem of SD and SSD
why do  I calculate the SD and SSD of big neuron like fruit fly and mouse are very large ,follow is my program based on the paper of Han Peng
clear all;
 op_swc=importdata('E:\neuron-photo\p_checked6_fruitfly_larvae_gmu\done_1_CL-I_X_OREGON_R_ddaD_membrane-GFP\v3dpbd_MOST.swc');
 stand_swc=importdata('E:\neuron-photo\p_checked6_fruitfly_larvae_gmu\done_1_CL-I_X_OREGON_R_ddaD_membrane-GFP\1_CL-I_X_OREGON_R_ddaD_membrane-GFP.tif.v3dpbd.swc');
 sum_distance=0;
 SSD=0;
 for i=1:length(op_swc)
     min_distance=200;
          for j=1:length(stand_swc)
             distance=sqrt(((op_swc(i,3)-stand_swc(j,2))^2+(op_swc(i,4)-(stand_swc(j,3)))^2+(op_swc(i,5)-stand_swc(j,4))^2));
              if distance min_distance=distance;
             end
           end
        if min_distance>2
        SSD=SSD+1;
         end
    sum_distance=min_distance+sum_distance;

end
SD=sum_distance/length(op_swc);
Jan 15, 2018  05:01 PM | Zhi Zhou
RE: a problem of SD and SSD
The source code to calculate these two distance scores is here https://github.com/Vaa3D/v3d_external/bl.... Please check it.