исключение - нераспознанный или неподдерживаемый тип массива

Image<bgr,byte> WeightedImg;
.
.

double color;

for (int i = 0; i < dataArray.Length; i++){
    color = dataArray[i, 2];
    WeightedImg.Bitmap.SetPixel(x, y,Color.FromArgb((int)Math.Ceiling(color * R), (int)Math.Ceiling(color * G),(int)Math.Ceiling(color * B)));
}

трока:

WeightedImg.Bitmap.SetPixel(x, y,Color.FromArgb((int)Math.Ceiling(color * R),
   (int)Math.Ceiling(color * G),(int)Math.Ceiling(color * B)));

делает сбой программы .. Я хочу установить пиксель вWeightedImg в соответствии сdoubleценность .. это возможно?

или я могу конвертировать изImage<bgr,byte> вBitmap или жеdouble[,] ?

Ответы на вопрос(1)

Ваш ответ на вопрос