Lines Matching full:newvalue
224 double newValue = range_cast(gdalType, image.depth(), pixelValue );
228 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) = newValue; }
229 else if( image.depth() == CV_16U ){ image.at<unsigned short>(row,col) = newValue; }
230 else if( image.depth() == CV_16S ){ image.at<short>(row,col) = newValue; }
231 else if( image.depth() == CV_32S ){ image.at<int>(row,col) = newValue; }
232 else if( image.depth() == CV_32F ){ image.at<float>(row,col) = newValue; }
233 else if( image.depth() == CV_64F ){ image.at<double>(row,col) = newValue; }
239 if( image.depth() == CV_8U ){ image.at<Vec3b>(row,col) = Vec3b(newValue,newValue,newValue); }
240 else if( image.depth() == CV_16U ){ image.at<Vec3s>(row,col) = Vec3s(newValue,newValue,newValue); }
241 else if( image.depth() == CV_16S ){ image.at<Vec3s>(row,col) = Vec3s(newValue,newValue,newValue); }
242 else if( image.depth() == CV_32S ){ image.at<Vec3i>(row,col) = Vec3i(newValue,newValue,newValue); }
243 else if( image.depth() == CV_32F ){ image.at<Vec3f>(row,col) = Vec3f(newValue,newValue,newValue); }
244 else if( image.depth() == CV_64F ){ image.at<Vec3d>(row,col) = Vec3d(newValue,newValue,newValue); }
250 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) += (newValue/3.0); }
256 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) = newValue; }
262 if( image.depth() == CV_8U ){ image.at<Vec3b>(row,col)[channel] = newValue; }
263 else if( image.depth() == CV_16U ){ image.at<Vec3s>(row,col)[channel] = newValue; }
264 else if( image.depth() == CV_16S ){ image.at<Vec3s>(row,col)[channel] = newValue; }
265 else if( image.depth() == CV_32S ){ image.at<Vec3i>(row,col)[channel] = newValue; }
266 else if( image.depth() == CV_32F ){ image.at<Vec3f>(row,col)[channel] = newValue; }
267 else if( image.depth() == CV_64F ){ image.at<Vec3d>(row,col)[channel] = newValue; }
274 else if( image.depth() == CV_8U && channel < 4 ){ image.at<Vec3b>(row,col)[channel] = newValue; }
275 else if( image.depth() == CV_16U && channel < 4 ){ image.at<Vec3s>(row,col)[channel] = newValue; }
276 else if( image.depth() == CV_16S && channel < 4 ){ image.at<Vec3s>(row,col)[channel] = newValue; }
277 else if( image.depth() == CV_32S && channel < 4 ){ image.at<Vec3i>(row,col)[channel] = newValue; }
278 else if( image.depth() == CV_32F && channel < 4 ){ image.at<Vec3f>(row,col)[channel] = newValue; }
279 else if( image.depth() == CV_64F && channel < 4 ){ image.at<Vec3d>(row,col)[channel] = newValue; }
285 if( image.depth() == CV_8U ){ image.at<Vec4b>(row,col)[channel] = newValue; }