mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -694,11 +694,16 @@ sub-matrices.
|
||||
-# Process "foreign" data using OpenCV (for example, when you implement a DirectShow\* filter or
|
||||
a processing module for gstreamer, and so on). For example:
|
||||
@code
|
||||
void process_video_frame(const unsigned char* pixels,
|
||||
int width, int height, int step)
|
||||
Mat process_video_frame(const unsigned char* pixels,
|
||||
int width, int height, int step)
|
||||
{
|
||||
Mat img(height, width, CV_8UC3, pixels, step);
|
||||
GaussianBlur(img, img, Size(7,7), 1.5, 1.5);
|
||||
// wrap input buffer
|
||||
Mat img(height, width, CV_8UC3, (unsigned char*)pixels, step);
|
||||
|
||||
Mat result;
|
||||
GaussianBlur(img, result, Size(7, 7), 1.5, 1.5);
|
||||
|
||||
return result;
|
||||
}
|
||||
@endcode
|
||||
-# Quickly initialize small matrices and/or get a super-fast element access.
|
||||
|
||||
@@ -503,7 +503,7 @@ VSX_IMPL_CONV_EVEN_2_4(vec_uint4, vec_double2, vec_ctu, vec_ctuo)
|
||||
VSX_IMPL_CONV_2VARIANT(vec_int4, vec_float4, vec_cts, vec_cts)
|
||||
VSX_IMPL_CONV_2VARIANT(vec_float4, vec_int4, vec_ctf, vec_ctf)
|
||||
// define vec_cts for converting double precision to signed doubleword
|
||||
// which isn't combitable with xlc but its okay since Eigen only use it for gcc
|
||||
// which isn't compatible with xlc but its okay since Eigen only uses it for gcc
|
||||
VSX_IMPL_CONV_2VARIANT(vec_dword2, vec_double2, vec_cts, vec_ctsl)
|
||||
#endif // Eigen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user