Commit 3c714475c3df00f5d4250d7661b70534ae6ce510

Authored by David Mayerich
1 parent f5d463e5

fixed incorrect comments in hsi::mask_finite

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
stim/envi/hsi.h
... ... @@ -149,13 +149,13 @@ public:
149 149 for(size_t i = 0; i < R[0] * R[1]; i++){ //for each pixel in that page
150 150  
151 151 #ifdef _WIN32
152   - if(!_finite(page[i])){ //if the value at index i is finite
  152 + if(!_finite(page[i])){ //if the value at index i is not finite
153 153 #else
154   - if(!std::isfinite(page[i])){ //C++11 implementation
  154 + if(!std::isfinite(page[i])){ //C++11 implementation
155 155 #endif
156 156 size_t x, y, b;
157   - xyb(p * R[0] * R[1] + i, x, y, b); //find the 3D coordinates of the value
158   - mask[ y * X() + x ] = 0; //mask the pixel (it's not bad)
  157 + xyb(p * R[0] * R[1] + i, x, y, b); //find the 3D coordinates of the value
  158 + mask[ y * X() + x ] = 0; //remove the pixel (it's bad)
159 159 }
160 160 }
161 161 if(PROGRESS) progress = (double)(p + 1) / (double)R[2] * 100;
... ...