Skip to content

Commit

Permalink
looks like cam bin causes greyscale
Browse files Browse the repository at this point in the history
  • Loading branch information
hn-88 authored Feb 19, 2020
1 parent bb2107e commit e91dec6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ViewportSaverc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ int main(int argc, char *argv[])
char id[32];
//char camtype[16];
int found = 0;
unsigned int w, h, bpp = 8, channels, cambitdepth = 16;
unsigned int w, h, bpp = 8, channels = 3, cambitdepth = 16;
unsigned int offsetx = 0, offsety = 0;
unsigned int indexi, manualindexi, averages = 1, opw, oph;
uint indextemp;

int camtime = 1, camgain = 1, camspeed = 1, cambinx = 2, cambiny = 2, usbtraffic = 10;
int camtime = 1, camgain = 1, camspeed = 1, cambinx = 1, cambiny = 1, usbtraffic = 10;
int binvalue = 1, normfactor = 1, normfactorforsave = 25;
double camgamma = 1.0;

Expand Down Expand Up @@ -177,7 +177,11 @@ int main(int argc, char *argv[])
camgamma = atof(gammastr);
}

else std::cout << "Unable to open ini file, using defaults.";
else std::cout << "Unable to open ini file, using defaults." << std::endl;

std::cout << "Binning has to be disabled for colour..." << std::endl;

binvalue = 1;

namedWindow("show", 0); // 0 = WINDOW_NORMAL
moveWindow("show", 0, 0);
Expand Down

0 comments on commit e91dec6

Please sign in to comment.