Ask Your Question

dark's profile - activity

2017-12-19 07:02:17 -0600 received badge  Popular Question (source)
2014-01-15 23:13:48 -0600 received badge  Student (source)
2013-03-14 02:28:35 -0600 commented answer how do i save QImage in cv::Mat

I know. I need it as CV_8UC3 in BGR format. will try cv::mixChannels later, oi maybe someone has a better idea and i don't need to search google :)

2013-03-13 11:56:12 -0600 commented answer how do i save QImage in cv::Mat

This is what i'm using now: cv::Mat image = cv::Mat(img.height(), img.width(), CV_8UC4, img.scanLine(0), img.bytesPerLine());

img is a QImage.

2013-03-13 07:27:36 -0600 commented answer how do i save QImage in cv::Mat

I'm using QTcpSocket to receive pictures from a tablet. readAll() gives me a ByteArray. Then i use LoadFromData() for a Pixmap, to display the image in a GUI.

Now i want to change it and save to cv::Mat, to be able to use imageprocessing.

Will see if your char pointer idea solves it.

2013-03-13 05:00:23 -0600 commented answer how do i save QImage in cv::Mat

operations for each pixel will be too slow. was hoping for something fast. maybe scanLine() or data() of the QByteArray class

2013-03-13 03:43:32 -0600 asked a question how do i save QImage in cv::Mat

can anyone tell me how to save QImage in a cv::Mat variable? QByteArray to cv::Mat would also work.

2012-12-03 03:29:29 -0600 asked a question coordinate system of the posit algorithm

can anyone tell me how the coordinate system of posit is defined? i know it calculates the rotation and translation of an object in relation to the camera, but what excactly does that mean. for example if i get a rotation of 90° around the z axis. in which direction is z pointing and is the object rotating around z or the camera?