예제 #1
0
        } /* CountImagesMissingFeatureData */

        private PicesFeatureVectorList  SaveFeatureDataBySipperFiles()
        {
            PicesFeatureVectorList data = new PicesFeatureVectorList();

            String[] sipperFileNames = null;
            if (String.IsNullOrEmpty(sipperFileName))
            {
                sipperFileNames = dbConn.SipperFileGetList(cruise, station, deployment);
            }
            else
            {
                sipperFileNames    = new String[1];
                sipperFileNames[0] = sipperFileName;
            }

            if (sipperFileNames != null)
            {
                for (int idx = 0; (idx < sipperFileNames.Length) && (!cancelRequested); idx++)
                {
                    String curSipperFileName = sipperFileNames[idx];
                    backGroundStatus = "Loading[" + (idx + 1).ToString() + " of " + sipperFileNames.Length.ToString() + "]  File[" + curSipperFileName + "]";

                    PicesFeatureVectorList dataThisSipperFile = dbConn.FeatureDataGetOneSipperFile(curSipperFileName, mlClass, classKeyToUse, false);
                    if (dataThisSipperFile != null)
                    {
                        imagesLoaded += (uint)dataThisSipperFile.Count;
                        uint numFilteredOut = 0;
                        dataThisSipperFile        = FilterFeatureVectorList(dataThisSipperFile, ref numFilteredOut);
                        imagesFilteredOut        += numFilteredOut;
                        imagesMissingFeatureData += CountImagesMissingFeatureData(dataThisSipperFile);

                        foreach (PicesFeatureVector fv in dataThisSipperFile)
                        {
                            data.Add(fv);
                        }
                    }
                }
            }

            return(data);
        } /* SaveFeatureDataBySipperFiles */