Ignore:
Timestamp:
2019-08-26T16:44:52+12:00 (5 years ago)
Author:
cpb16
Message:

made progress with morphology. Need to have a better area dimension threshold setup

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  
    113113    static int MAXLINEGAP                   = 1;  //4
    114114    static double THRESHOLD_C               = 4;
    115     static double SLOPEGRADIENT             = 0.02;
     115    static double SLOPEGRADIENT             = 0.02; //0.02
    116116    static double CLUSTER_DISTANCE_MAX      = 40;
    117117    static double CLUSTER_DISTANCE_MIN      = 2;
     
    757757            //!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTNOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    758758            //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";
    759763            //String default_file = directory+"NotSheetMusic/coo.31924062612282-9.png";
    760764            //String default_file = directory+"NotSheetMusic/mdp.39015097852365-2.png";
    761765            //String default_file ="TestImages/NotNot/mdp.39015080972303-3.png";
    762766            //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";
    764768            //String default_file =hiresDirectory+"BK/NotSheetMusic/aeu.ark+=13960=t9z03w65z-4.png";
    765769
     
    856860            HighGui.resizeWindow("LINESFOUND", 1000,1000);
    857861           
    858             //HighGui.imshow("CLUSTERS FOUND", clustersFoundRGB);
     862            HighGui.imshow("CLUSTERSFOUND", clustersFoundRGB);
     863            HighGui.resizeWindow("CLUSTERSFOUND", 1000,1000);
    859864
    860865            //HighGui.imshow("Detected Lines (in red) - negative", edgesDetectedRGBProb);
     
    862867            System.out.println("LINE COUNT RESULT:   " +  ClassifierLineCount(horizontalLineCount) + '\t' +"LinesFound: " + horizontalLineCount); //COUNT OF LINES CLASSIFICATION
    863868            //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));
    865870            //System.out.println(ClassifierLineClusterPt(pointArrayList, clustersFoundRGB));
    866871
Note: See TracChangeset for help on using the changeset viewer.