2012-12-20 02:22:00 -0600 | commented answer | change Mat element values are slow So it is the Random Access part that makes it so time consuming? I am building up a projection of an image with range data by taking every range data and transforming that into a row&col and adding 1 to myMat which represents the floorPlane. i.e, a wall will be a bright line. Maybe there is a faster way of achieving the same result? |
2012-12-19 09:25:16 -0600 | asked a question | change Mat element values are slow myMat.at<unsigned short="">(row,col) += 1 Why is that operation so slow? Why is that slower than increasing an INT (or 100 INTs for that matter) for example? If I want to make a lot of this type of calls, what would be the most efficient way? |
2012-12-19 09:13:29 -0600 | received badge | ● Supporter (source) |
2012-12-19 08:24:18 -0600 | commented question | Project depth image to floor I just notice that |
2012-12-19 07:30:21 -0600 | asked a question | Project depth image to floor Hi! Im looking for a fast way of projecting an depth image to a floor plane. I have a Mat that is 320*240 which contain range data, I know the normal to what is the floor plane in the image. And I want to transform that into an image representing a new viewpoint (the image is taken parallel to the floor and I want to transform it so that it looks like if the camera were facing the floor). Hope you understand what I want to do... Now, at this point I´m going through every point in the Mat and calculates 2D-coordinates for the new image and increase that value with 1 (faceing a wall will result in a bright line). And the actual question is: is there a faster way? Or maybe some build in funtion that could speed things up? Tanks for any help!! /Eric |