Changeset 74
- Timestamp:
- 06/24/09 10:49:02 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ddd/Functions.cpp
r66 r74 154 154 buffer = strtok(NULL, delim); 155 155 pixel = atoi(buffer); 156 157 //usual M0 mapping 158 //int binx = 5-(int((superpixel-1)/3)*2)-(int((pixel%4)/2)); 159 //int biny = 5-(((superpixel-1)%3)*2)-(int((pixel-1)/2)); 156 160 157 int binx = 5-(int((superpixel-1)/3)*2)-(int((pixel%4)/2)); 158 int biny = 5-(((superpixel-1)%3)*2)-(int((pixel-1)/2)); 159 161 //M0 upside down 162 int binx = 5-(5-(int((superpixel-1)/3)*2)-(int((pixel%4)/2))); 163 int biny = 5-(5-(((superpixel-1)%3)*2)-(int((pixel-1)/2))); 164 160 165 //search maximum sample amplitude within user specified window 161 166 //start bin is always smaller than stop bin (taken care of by updated ranges)
Note:
See TracChangeset
for help on using the changeset viewer.