Lines Matching refs:depth
201 void convertToDepth(InputArray src, OutputArray dst, int depth) in convertToDepth() argument
203 CV_Assert( src.depth() <= CV_64F ); in convertToDepth()
204 CV_Assert( depth == CV_8U || depth == CV_32F ); in convertToDepth()
217 const double scale = maxVals[depth] / maxVals[src.depth()]; in convertToDepth()
222 src.getGpuMat().convertTo(dst.getGpuMatRef(), depth, scale); in convertToDepth()
226 src.getUMat().convertTo(dst, depth, scale); in convertToDepth()
230 src.getMat().convertTo(dst, depth, scale); in convertToDepth()
241 const int depth = CV_MAT_DEPTH(type); in convertToType() local
244 if (src.depth() == depth) in convertToType()
252 convertToDepth(src, buf1, depth); in convertToType()
257 convertToDepth(buf0, buf1, depth); in convertToType()
266 const int depth = CV_MAT_DEPTH(type); in convertToType() local
269 if (src.depth() == depth) in convertToType()
277 convertToDepth(src, buf1, depth); in convertToType()
282 convertToDepth(buf0, buf1, depth); in convertToType()
291 const int depth = CV_MAT_DEPTH(type); in convertToType() local
294 if (src.depth() == depth) in convertToType()
302 convertToDepth(src, buf1, depth); in convertToType()
307 convertToDepth(buf0, buf1, depth); in convertToType()