public ByteArgbValues(ImageMatrix alpha, ImageMatrix red, ImageMatrix green, ImageMatrix blue) { if (!(ImageMatrix.AreTheSameSize(red, green) && ImageMatrix.AreTheSameSize(red, blue) && ImageMatrix.AreTheSameSize(red, alpha))) { throw new NotImplementedException(); } this.height = red.NumberOfRows; this.width = red.NumberOfColumns; this.m_AlphaValues = alpha; this.m_RedValues = red; this.m_GreenValues = green; this.m_BlueValues = blue; this.m_RedHistogram = SpatialDomainEnhancement.RadiometricEnhancement.CalculateHistogram(red); this.m_GreenHistogram = SpatialDomainEnhancement.RadiometricEnhancement.CalculateHistogram(green); this.m_BlueHistogram = SpatialDomainEnhancement.RadiometricEnhancement.CalculateHistogram(blue); this.m_AlphaHistogram = SpatialDomainEnhancement.RadiometricEnhancement.CalculateHistogram(alpha); }