public void PrepareImage(bool forceReprepare = false)
 {
     if (!isPrepared || forceReprepare)
     {
         preparedMat = ImageAnalyzeTool.PrepareImage(this.sourceMat);
         isPrepared  = true;
     }
 }
 public void LoadImage(string pathToImage, bool forceReload = false)
 {
     if ((pathToImage.Length > 0) && sourceMat == null || forceReload)
     {
         this.sourceMat = ImageAnalyzeTool.LoadImage(pathToImage);
         isPrepared     = false;
     }
 }
 public void initBoundedParagraphsImage()
 {
     if (!isPrepared)
     {
         PrepareImage();
     }
     this.imageWithParagraphBoundingRect = ImageAnalyzeTool.DrawRectanglesParagraphs(this.GetPreparedMat());
 }
 public void initBoundedWordsImage()
 {
     if (!isPrepared)
     {
         PrepareImage();
     }
     this.imageWithWordsBoundinRect = ImageAnalyzeTool.DrawRectanglesWords(this.GetPreparedMat());
 }
 public override void SaveImage(Mat imageToSave, string fileName)
 {
     {
         if (fileName.Length > 0 && imageToSave != null)
         {
             ImageAnalyzeTool.SaveImageFromMat(imageToSave, fileName);
         }
     }
 }