Home > analysis > plot_score_distribution.m

plot_score_distribution

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 load _samples
0002 
0003 %% GET FEATURES FOR ALL SAMPLES
0004 TPfeatures = get_samples_features(TP);
0005 
0006 FNfeatures = get_samples_features(FN);
0007 
0008 FPfeatures = get_samples_features(FP);
0009 
0010 GTfeatures = get_samples_features(GT);
0011 
0012 
0013 %% PLOT RMD score distributions
0014 [tpCounts,x] = imhist(tpRadialMeanScoreArray);
0015 [fnCounts,x] = imhist(fnRadialMeanScoreArray);
0016 [fpCounts,x] = imhist(fpRadialMeanScoreArray);
0017 [gtCounts,x] = imhist(gtRadialMeanScoreArray);
0018 f1 = figure(1); hold on;
0019 set(gca,'FontSize',16);
0020 title('Radial Mean Distribution');
0021 plot(x(end/6:end/2),tpCounts(end/6:end/2),'-g.','LineWidth',1);
0022 plot(x(end/6:end/2),fnCounts(end/6:end/2),'--b.','LineWidth',1);
0023 plot(x(end/6:end/2),fpCounts(end/6:end/2),':r.','LineWidth',1);   
0024 plot(x(end/6:end/2),gtCounts(end/6:end/2),'-.k.','LineWidth',1);
0025 legend('True Positives','False Negatives','False Positives','Ground Truth');
0026 
0027 
0028 %% PLOT Mean Intensity
0029 % Normalized
0030 tpMeanIntensityArray = imnormal(tpMeanIntensityArray);
0031 fnMeanIntensityArray = imnormal(fnMeanIntensityArray);
0032 fpMeanIntensityArray = imnormal(fpMeanIntensityArray);
0033 gtMeanIntensityArray = imnormal(gtMeanIntensityArray);
0034 
0035 [tpCounts,x] = imhist(tpMeanIntensityArray);
0036 [fnCounts,x] = imhist(fnMeanIntensityArray);
0037 [fpCounts,x] = imhist(fpMeanIntensityArray);
0038 [gtCounts,x] = imhist(gtMeanIntensityArray);
0039 
0040 f2 = figure(2); hold on;
0041 set(gca,'FontSize',16);
0042 title('Mean Intensity Distribution');
0043 plot(x,tpCounts,'-g.','LineWidth',1);
0044 plot(x,fnCounts,'--b.','LineWidth',1);
0045 plot(x,fpCounts,':r.','LineWidth',1);            
0046 plot(x,gtCounts,'-.k.','LineWidth',1); 
0047 legend('True Positives','False Negatives','False Positives','Ground Truth');
0048 
0049 
0050 %% PLOT Standard Deviation of Intensity
0051 % Normalized
0052 tpStdIntensityArray = imnormal(tpStdIntensityArray);
0053 fnStdIntensityArray = imnormal(fnStdIntensityArray);
0054 fpStdIntensityArray = imnormal(fpStdIntensityArray);
0055 gtStdIntensityArray = imnormal(gtStdIntensityArray);
0056 
0057 [tpCounts,x] = imhist(tpStdIntensityArray);
0058 [fnCounts,x] = imhist(fnStdIntensityArray);
0059 [fpCounts,x] = imhist(fpStdIntensityArray);
0060 [gtCounts,x] = imhist(gtStdIntensityArray);
0061 
0062 f3 = figure(3); hold on;
0063 set(gca,'FontSize',16);
0064 title('Std Intensity Distribution');
0065 plot(x,tpCounts,'-g.','LineWidth',1);
0066 plot(x,fnCounts,'--b.','LineWidth',1);
0067 plot(x,fpCounts,':r.','LineWidth',1);                        
0068 plot(x,gtCounts,'-.k.','LineWidth',1);   
0069 legend('True Positives','False Negatives','False Positives','Ground Truth');
0070 
0071 
0072 
0073 % subplot(3,1,1); bar(x,tpCounts,'g');title('TP Std Intensity Distribution');
0074 % subplot(3,1,2); bar(x,fnCounts,'b');title('FN Std Intensity Distribution');
0075 % subplot(3,1,3); bar(x,fpCounts,'r');title('FP Std Intensity Distribution');
0076 
0077 
0078 
0079

Generated on Thu 17-Mar-2011 14:45:51 by m2html © 2005