void ShowDetectedRect()
        {
            labelStatus.Text       = "";
            labelDetectedRect.Text = "";
            labelRectInfo.Text     = "";
            listBoxDetectedRect.Items.Clear();

            if (_ImgCol != null &&
                listBoxImg.SelectedIndex >= 0 &&
                listBoxImg.SelectedIndex < _ImgCol.ImgList.Count &&
                checkBoxDetect.Checked
                )
            {
                LabeledImg labeledImg = _ImgCol.ImgList[listBoxImg.SelectedIndex];

                if (labeledImg != null)
                {
                    List <ScoredRect> ascoredRect = null;
                    DetectionResult   detRes      = DetectFaces(labeledImg);

                    if (detRes != null)
                    {
                        float eThreshold = trackBarThreshold.Value * _eStepSize;

                        if (radioButtonMergedRect.Checked)
                        {
                            ascoredRect = detRes.GetMergedRectList(eThreshold);
                        }
                        else
                        {
                            ascoredRect = detRes.GetRawRectList(eThreshold);
                        }
                    }

                    if (ascoredRect != null)
                    {
                        listBoxDetectedRect.SuspendLayout();

                        listBoxDetectedRect.Items.Clear();

                        labelDetectedRect.Text = ascoredRect.Count + " rectangle(s)";

                        foreach (ScoredRect rect in ascoredRect)
                        {
                            listBoxDetectedRect.Items.Add(rect);
                        }

                        listBoxDetectedRect.ResumeLayout();
                    }
                }
            }
        }