コード例 #1
0
        private void  DisplayTrainingLibraryImagesBottomClass(Object sender, EventArgs e)
        {
            PicesClass bottomClass = GetSelectedBottomClass();

            if ((bottomClass == null) || (trainingModel == null))
            {
                return;
            }

            String dir = trainingModel.DirectoryPathForClass(bottomClass);

            if (String.IsNullOrEmpty(dir))
            {
                return;
            }

            DisplayPicesImages dpi = new DisplayPicesImages(dir);

            String[] svNames = trainingModel.SupportVectorNames(selectedTopClass, bottomClass);
            if (svNames != null)
            {
                dpi.SummportVectorNames(svNames);
            }

            dpi.ShowDialog();
            dpi.Dispose();
            dpi = null;
        } /* DisplayTrainingLibraryImagesBottomClass */
コード例 #2
0
        } /* GetSelectedBottomClass */

        private void  DisplayTrainingImages(PicesClass mlClass)
        {
            if (trainingModel == null)
            {
                return;
            }

            String dir = trainingModel.DirectoryPathForClass(mlClass);

            if (String.IsNullOrEmpty(dir))
            {
                return;
            }

            DisplayPicesImages dpi = new DisplayPicesImages(dir);

            dpi.ShowDialog();
            dpi.Dispose();
            dpi = null;
        } /* DisplayTrainingImages */
コード例 #3
0
        } /* DisplayWorstTrainingImages */

        private void DisplayWorstTrainingImages2(PicesClass bottomClass)
        {
            if (trainingModel == null)
            {
                return;
            }

            String dir1 = trainingModel.DirectoryPathForClass(selectedTopClass);
            String dir2 = trainingModel.DirectoryPathForClass(bottomClass);

            if (String.IsNullOrEmpty(dir1) && String.IsNullOrEmpty(dir2))
            {
                return;
            }

            ProbNamePair[] worstTrainingImages = trainingModel.FindWorstSupportVectors2(featureVector, 500, selectedTopClass, bottomClass);

            DisplayPicesImages dpi = new DisplayPicesImages(dir1, dir2, worstTrainingImages);

            dpi.ShowDialog();
            dpi.Dispose();
            dpi = null;
        }
コード例 #4
0
ファイル: SelectAPicesClass.cs プロジェクト: PalakDave/Pices
        private void MLClassChoices_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                selectionMade = true;
                selectedClass = PicesClassList.GetUniqueClass(e.Node.Text, "");
                Close();
                return;
            }
            else if (e.Button == MouseButtons.Right)
            {
                if (String.IsNullOrEmpty(rootDir))
                {
                    return;
                }

                String fullDirPath = rootDir + e.Node.Text;

                DisplayPicesImages dpi = new DisplayPicesImages(fullDirPath);
                dpi.ShowDialog();
                dpi.Dispose();
                dpi = null;
            }
        }