private static void DebugShapNormilization(GrayImage image, List <TextBlock> textBlocks, ShowImageHandle showImageFunction)
 {
     foreach (var b in textBlocks)
     {
         ShapeNormalization.LinearNormalization(image, b);
         GrayImage bImag = new GrayImage(ShapeNormalization.NormWidth, ShapeNormalization.NormHeigth);
         bImag.Pixels = ShapeNormalization.Pixels;
         showImageFunction(bImag);
     }
 }
        private static void ClassifyTextBlock(TextBlock block)
        {
            ShapeNormalization.LinearNormalization(image, block);
            Filter.GaussianFilter(ShapeNormalization.Pixels, ShapeNormalization.NormWidth, ShapeNormalization.NormHeigth);
            FeatureExtaction.HistogramOrientedGradient(ShapeNormalization.Pixels, ShapeNormalization.NormWidth, ShapeNormalization.NormHeigth);
            LdaVector.ReduceDimension();

            CalculateFirstStage();
            CalculateSecondStage();
            CalculateThirdStage();
            GetClassifiedResults(block);
        }