public void SetImage(ushort[] image, int width, int height) { m_image = image; if (!ImageDisplay.IsReady()) { ImageDisplay.Init(width, height, m_colorModel.m_maxPixelValue, m_colorModel.m_colorMap); } ImageDisplay.DisplayImage(m_image); }
public void SetImage(ushort[] image, int width, int height) { m_image = image; if (!ImageDisplay.IsReady()) { ImageDisplay.Init(width, height, m_colorModel.m_maxPixelValue, m_colorModel.m_colorMap); } ImageDisplay.DisplayImage(m_image); if (m_imageHistogram.Count() < m_colorModel.m_maxPixelValue + 1) { m_imageHistogram.Clear(); for (int i = 0; i < m_colorModel.m_maxPixelValue + 1; i++) { m_imageHistogram.Add(new HistogramBar(i, 0)); } } BuildImageHistogram(); }