// cmap is the desired color spectrum to use public static Bitmap ConvertImageToHeatmapBitMap(Bitmap img, bool logScale) { int[,] Heatmap = new int[64, 4]; // Heatmap ColorMapExt cmap = new ColorMapExt(); Heatmap = cmap.Heatmap(); return Convert2DIntArrayToHeatmapBitMap(ConvertBitmapTo2DIntArray(img), Heatmap, logScale); }
private void Init() { ColorMapExt cmap = new ColorMapExt(); Heatmap = cmap.Heatmap(); useFiltering = checkBoxDepthUseFiltering.Checked; useAverage = checkBoxDepthUseAverage.Checked; innerBandThreshold = (int)trackBarDepthInnerBand.Value; outerBandThreshold = (int)trackBarDepthOuterBand.Value; averageFrameCount = (int)trackBarDepthFramesToAverage.Value; // Sets the camera elevation angle //this.sensor.ElevationAngle = Convert.ToInt32(this.textboxElevationAngle.Text); // Lookup table for all possible depth values (0 - 2047) for (int i = 0; i < DepthLookUp.Length; i++) { DepthLookUp[i] = rawDepthToMeters(i); } }
// cmap is the desired color spectrum to use public static Bitmap Convert2DIntArrayToHeatmapBitMap(int[,] data, bool logScale) { int[,] Heatmap = new int[64, 4]; // Heatmap ColorMapExt cmap = new ColorMapExt(); Heatmap = cmap.Heatmap(); return Convert2DIntArrayToHeatmapBitMap(data, Heatmap, 0, 255, logScale); }