T1 data structure fixed

This commit is contained in:
2017-09-01 10:08:07 +02:00
parent 5dbfbdb82b
commit 1510fa71d3
5 changed files with 141 additions and 79 deletions

View File

@ -220,6 +220,8 @@ class slsDetectorData {
virtual dataType getChannel(char *data, int ix, int iy=0) {
dataType m=0, d=0;
if (ix>=0 && ix<nx && iy>=0 && iy<ny && dataMap[iy][ix]>=0 && dataMap[iy][ix]<dataSize) {
// cout << ix << " " << iy << " " ;
//cout << dataMap[ix][iy] << " " << (void*)data << " " << dataSize<< endl;
m=dataMask[iy][ix];
d=*((dataType*)(data+dataMap[iy][ix]));
}