Example #1
0
 public Histogram_BMP(Point p, Size size, Histogram_Data his)
 {
     startPoint_ref = p;
     histo_width    = size.Width;
     histo_height   = size.Height;
     histo_data     = his;
 }
        public unsafe void GenerateImage()
        {
            if (imgLevel == 0 && imgWindow == 0)
            {
                Histogram_Data his = new Histogram_Data();
                his.ComputeHistogram(ImageData);
                imgLevel  = his.windowCenter;
                imgWindow = his.windowWidth;
            }

            Color[] LUT = null;
            HisLUT.RefreshLUT(ref LUT, null, false, imgLevel, imgWindow, 65536);

            BMP = SliceImageToBitmap24(ImageData, LUT);
        }