Changeset 33437 for other-projects/is-sheet-music-encore/trunk/image-identification-dev-02/image-identification-development/src/Main.java
- Timestamp:
- 2019-08-26T16:44:52+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/is-sheet-music-encore/trunk/image-identification-dev-02/image-identification-development/src/Main.java
r33415 r33437 113 113 static int MAXLINEGAP = 1; //4 114 114 static double THRESHOLD_C = 4; 115 static double SLOPEGRADIENT = 0.02; 115 static double SLOPEGRADIENT = 0.02; //0.02 116 116 static double CLUSTER_DISTANCE_MAX = 40; 117 117 static double CLUSTER_DISTANCE_MIN = 2; … … 757 757 //!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTNOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 758 758 //coo.31924062612282-9.png 8 lines 759 //String default_file = hiresDirectory+ "MU/SheetMusic/mdp.39015096400919-9.png"; 760 761 //String default_file = hiresDirectory+ "MU/SheetMusic/mdp.39015096402204-2.png"; 762 String default_file = hiresDirectory+ "MU/SheetMusic/mdp.39015096408490-3.png"; 759 763 //String default_file = directory+"NotSheetMusic/coo.31924062612282-9.png"; 760 764 //String default_file = directory+"NotSheetMusic/mdp.39015097852365-2.png"; 761 765 //String default_file ="TestImages/NotNot/mdp.39015080972303-3.png"; 762 766 //String default_file =hiresDirectory+"BK/NotSheetMusic/aeu.ark+=13960=t2q53nq6w-6.png"; 763 String default_file = "/Scratch/cpb16/is-sheet-music-encore/image-identification-terminal/TestImages/test-coo.31924062612282-9.png";767 //String default_file = "/Scratch/cpb16/is-sheet-music-encore/image-identification-terminal/TestImages/test-coo.31924062612282-9.png"; 764 768 //String default_file =hiresDirectory+"BK/NotSheetMusic/aeu.ark+=13960=t9z03w65z-4.png"; 765 769 … … 856 860 HighGui.resizeWindow("LINESFOUND", 1000,1000); 857 861 858 //HighGui.imshow("CLUSTERS FOUND", clustersFoundRGB); 862 HighGui.imshow("CLUSTERSFOUND", clustersFoundRGB); 863 HighGui.resizeWindow("CLUSTERSFOUND", 1000,1000); 859 864 860 865 //HighGui.imshow("Detected Lines (in red) - negative", edgesDetectedRGBProb); … … 862 867 System.out.println("LINE COUNT RESULT: " + ClassifierLineCount(horizontalLineCount) + '\t' +"LinesFound: " + horizontalLineCount); //COUNT OF LINES CLASSIFICATION 863 868 //System.out.println("LINE CLUSTER RESULT: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(0) + '\t' + "LinesFound: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(1) + '\t' + "ClustersFound: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(2)); 864 //System.out.println("NEW CLUSTER RESULTS: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(0) + '\t' + "LinesFound: " + horizontalLineCount + '\t' + "ClustersFound: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(1));869 System.out.println("NEW CLUSTER RESULTS: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(0) + '\t' + "LinesFound: " + horizontalLineCount + '\t' + "ClustersFound: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(1)); 865 870 //System.out.println(ClassifierLineClusterPt(pointArrayList, clustersFoundRGB)); 866 871
Note:
See TracChangeset
for help on using the changeset viewer.