private SubMatrix GetOnlyTextArea(ImageMatrix matrix) { var tools = new MatrixTools(matrix); var textRectangle = tools.FindTextSubmatrix(); return(matrix.GetSubMatrix(textRectangle)); }
private void PrepareImage() { workMatrix = new ImageMatrix(new Bitmap(Image.FromFile(simplePageUrl))); BlurClearer clearer = new BlurClearer(workMatrix); clearer.ClearShadows(); MatrixTools tools = new MatrixTools(workMatrix); matrix = workMatrix.GetSubMatrix(tools.FindTextSubmatrix()); }