fstream f;
    f.open("data.txt", ios::out | ios::app);
    for (int cao = 0; cao < channels * height * width; cao++)
    {

      f << array[cao] << " ";
    }
    f << endl;
    f.close();