Home | History | Annotate | Download | only in src

Lines Matching refs:mtx

58         Mat mtx;
59 int mcn; // == mtx.channels()
73 void valueToStr8u() { sprintf(buf, "%3d", (int)mtx.ptr<uchar>(row, col)[cn]); }
74 void valueToStr8s() { sprintf(buf, "%3d", (int)mtx.ptr<schar>(row, col)[cn]); }
75 void valueToStr16u() { sprintf(buf, "%d", (int)mtx.ptr<ushort>(row, col)[cn]); }
76 void valueToStr16s() { sprintf(buf, "%d", (int)mtx.ptr<short>(row, col)[cn]); }
77 void valueToStr32s() { sprintf(buf, "%d", mtx.ptr<int>(row, col)[cn]); }
78 void valueToStr32f() { sprintf(buf, floatFormat, mtx.ptr<float>(row, col)[cn]); }
79 void valueToStr64f() { sprintf(buf, floatFormat, mtx.ptr<double>(row, col)[cn]); }
90 mtx = m;
109 switch(mtx.depth())
133 if (mtx.empty())
142 if (row >= mtx.rows)
181 buf[1] = row < mtx.rows ? ',' : '\0';
185 else if(braces[BRACE_ROW_SEP] && row < mtx.rows)
205 if (col >= mtx.cols)
227 if (row >= mtx.rows)
286 Ptr<Formatted> format(const Mat& mtx) const
289 return makePtr<FormattedImpl>("[", "]", mtx, &*braces,
290 mtx.rows == 1 || !multiline, false, mtx.depth() == CV_64F ? prec64f : prec32f );
298 Ptr<Formatted> format(const Mat& mtx) const
301 return makePtr<FormattedImpl>("", "", mtx, &*braces,
302 mtx.rows == 1 || !multiline, true, mtx.depth() == CV_64F ? prec64f : prec32f );
310 Ptr<Formatted> format(const Mat& mtx) const
313 if (mtx.cols == 1)
315 return makePtr<FormattedImpl>("[", "]", mtx, &*braces,
316 mtx.rows == 1 || !multiline, false, mtx.depth() == CV_64F ? prec64f : prec32f );
324 Ptr<Formatted> format(const Mat& mtx) const
331 if (mtx.cols == 1)
334 cv::format("], dtype='%s')", numpyTypes[mtx.depth()]), mtx, &*braces,
335 mtx.rows == 1 || !multiline, false, mtx.depth() == CV_64F ? prec64f : prec32f );
343 Ptr<Formatted> format(const Mat& mtx) const
347 mtx.rows > 1 ? String("\n") : String(), mtx, &*braces,
348 mtx.rows == 1 || !multiline, false, mtx.depth() == CV_64F ? prec64f : prec32f );
356 Ptr<Formatted> format(const Mat& mtx) const
359 return makePtr<FormattedImpl>("{", "}", mtx, &*braces,
360 mtx.rows == 1 || !multiline, false, mtx.depth() == CV_64F ? prec64f : prec32f );