Lines Matching refs:image
218 Mat& image, in write_pixel() argument
224 double newValue = range_cast(gdalType, image.depth(), pixelValue ); in write_pixel()
227 if( gdalChannels == 1 && image.channels() == 1 ){ in write_pixel()
228 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) = newValue; } in write_pixel()
229 else if( image.depth() == CV_16U ){ image.at<unsigned short>(row,col) = newValue; } in write_pixel()
230 else if( image.depth() == CV_16S ){ image.at<short>(row,col) = newValue; } in write_pixel()
231 else if( image.depth() == CV_32S ){ image.at<int>(row,col) = newValue; } in write_pixel()
232 else if( image.depth() == CV_32F ){ image.at<float>(row,col) = newValue; } in write_pixel()
233 else if( image.depth() == CV_64F ){ image.at<double>(row,col) = newValue; } in write_pixel()
238 else if( gdalChannels == 1 && image.channels() == 3 ){ in write_pixel()
239 … if( image.depth() == CV_8U ){ image.at<Vec3b>(row,col) = Vec3b(newValue,newValue,newValue); } in write_pixel()
240 …else if( image.depth() == CV_16U ){ image.at<Vec3s>(row,col) = Vec3s(newValue,newValue,newValue);… in write_pixel()
241 …else if( image.depth() == CV_16S ){ image.at<Vec3s>(row,col) = Vec3s(newValue,newValue,newValue);… in write_pixel()
242 …else if( image.depth() == CV_32S ){ image.at<Vec3i>(row,col) = Vec3i(newValue,newValue,newValue);… in write_pixel()
243 …else if( image.depth() == CV_32F ){ image.at<Vec3f>(row,col) = Vec3f(newValue,newValue,newValue);… in write_pixel()
244 …else if( image.depth() == CV_64F ){ image.at<Vec3d>(row,col) = Vec3d(newValue,newValue,newValue);… in write_pixel()
249 else if( gdalChannels == 3 && image.channels() == 1 ){ in write_pixel()
250 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) += (newValue/3.0); } in write_pixel()
255 else if( gdalChannels == 4 && image.channels() == 1 ){ in write_pixel()
256 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) = newValue; } in write_pixel()
261 else if( gdalChannels == 3 && image.channels() == 3 ){ in write_pixel()
262 if( image.depth() == CV_8U ){ image.at<Vec3b>(row,col)[channel] = newValue; } in write_pixel()
263 else if( image.depth() == CV_16U ){ image.at<Vec3s>(row,col)[channel] = newValue; } in write_pixel()
264 else if( image.depth() == CV_16S ){ image.at<Vec3s>(row,col)[channel] = newValue; } in write_pixel()
265 else if( image.depth() == CV_32S ){ image.at<Vec3i>(row,col)[channel] = newValue; } in write_pixel()
266 else if( image.depth() == CV_32F ){ image.at<Vec3f>(row,col)[channel] = newValue; } in write_pixel()
267 else if( image.depth() == CV_64F ){ image.at<Vec3d>(row,col)[channel] = newValue; } in write_pixel()
272 else if( gdalChannels == 4 && image.channels() == 3 ){ in write_pixel()
274 …else if( image.depth() == CV_8U && channel < 4 ){ image.at<Vec3b>(row,col)[channel] = newValue;… in write_pixel()
275 …else if( image.depth() == CV_16U && channel < 4 ){ image.at<Vec3s>(row,col)[channel] = newValue; … in write_pixel()
276 …else if( image.depth() == CV_16S && channel < 4 ){ image.at<Vec3s>(row,col)[channel] = newValue; … in write_pixel()
277 …else if( image.depth() == CV_32S && channel < 4 ){ image.at<Vec3i>(row,col)[channel] = newValue; … in write_pixel()
278 …else if( image.depth() == CV_32F && channel < 4 ){ image.at<Vec3f>(row,col)[channel] = newValue; … in write_pixel()
279 …else if( image.depth() == CV_64F && channel < 4 ){ image.at<Vec3d>(row,col)[channel] = newValue; … in write_pixel()
284 else if( gdalChannels == 4 && image.channels() == 4 ){ in write_pixel()
285 if( image.depth() == CV_8U ){ image.at<Vec4b>(row,col)[channel] = newValue; } in write_pixel()
300 Mat& image, in write_ctable_pixel() argument
306 write_pixel( pixelValue, gdalType, 1, image, y, x, c ); in write_ctable_pixel()
311 write_pixel( pixelValue, gdalType, 1, image, y, x, c ); in write_ctable_pixel()
323 write_pixel( r, gdalType, 4, image, y, x, 2 ); in write_ctable_pixel()
324 write_pixel( g, gdalType, 4, image, y, x, 1 ); in write_ctable_pixel()
325 write_pixel( b, gdalType, 4, image, y, x, 0 ); in write_ctable_pixel()
326 if( image.channels() > 3 ){ in write_ctable_pixel()
327 write_pixel( a, gdalType, 4, image, y, x, 1 ); in write_ctable_pixel()
333 write_pixel( pixelValue, gdalType, 1, image, y, x, c ); in write_ctable_pixel()