2020-03-19 11:52:43 -0600 | received badge | ● Notable Question (source) |
2019-04-26 17:35:48 -0600 | received badge | ● Popular Question (source) |
2018-07-19 00:53:19 -0600 | received badge | ● Notable Question (source) |
2018-05-02 12:40:30 -0600 | received badge | ● Famous Question (source) |
2017-10-10 08:42:10 -0600 | received badge | ● Notable Question (source) |
2017-07-13 10:20:07 -0600 | received badge | ● Notable Question (source) |
2017-06-20 23:49:33 -0600 | received badge | ● Popular Question (source) |
2017-03-28 04:43:21 -0600 | received badge | ● Popular Question (source) |
2016-06-11 07:27:15 -0600 | received badge | ● Famous Question (source) |
2016-06-04 10:23:58 -0600 | marked best answer | Convert 3D point to 2D image point Hi, using OpenCV what is the fastest/easiest way to convert 3D points to 2D image points. I know that the points are expressed in x, y and z coords in milimeters, I have the camera parameters, the height of the camera (relative to the ground plane) is expressed also in milimeters. I need an easy way to convert these 3d points (x,y,z expressed in mm) to 2d points (expressed in pixels) using the data I have and obtain the Xi, Yi coords where the origin of the coordinate system in the top left corner of the image. Best regards! |
2016-04-08 05:11:57 -0600 | commented answer | Can't find the button create by cvCreateButton I would also like to display the panel automatically.. |
2016-04-08 05:11:05 -0600 | commented question | display properties window automatically I need the same functionality, did you ever figure it out? |
2016-03-29 22:35:39 -0600 | received badge | ● Popular Question (source) |
2016-03-23 01:44:31 -0600 | asked a question | Android Studio: OpenCV + NDK Does anyone have a good tutorial on how to use OpenCV in C++ (NDK) with the latest Android Studio? |
2016-01-09 07:41:34 -0600 | received badge | ● Notable Question (source) |
2015-11-09 00:48:15 -0600 | answered a question | can Opencv for android support GPU acceleration ? GPU acceleration is supported by using CUDA instructions on (mostly) nvidia hardware. If you want additional cpu + gpu acceleration you can use renderscript in your app. Read more about it here: http://developer.android.com/guide/to... I have used renderscript for color format conversions like YUV > RGB and it's really fast! Cheers! |
2015-11-08 08:18:02 -0600 | answered a question | Android + OpenCV + Face detection + Custom Layout Try to use a RelativeLayout or FrameLayout, the LinearLayout doesn't support Z-index, meaning that you can't draw items on top of each other. In relative or frame layouts, the views are displayed on screen in the order you add them in the xml. Similar question was asked here: http://stackoverflow.com/questions/41... |
2015-11-08 08:13:52 -0600 | answered a question | Build OpenCV + FastCV static linking Solved by changing the shared libs in Android.mk as follows: |
2015-11-05 10:23:16 -0600 | commented question | Build OpenCV + FastCV static linking I also tried this: But no luck.. because I get undefined reference errors in the c++ files of the opencv library. ex: |
2015-11-05 10:22:29 -0600 | asked a question | Build OpenCV + FastCV static linking Hi, I am having issues when building OpenCV and FastCV as static libs. Here is my Android.mk: When I open the app I get this error: If I remove the FastCV code, the OpenCV part works.. how can I make them both work? Thanks! |
2015-11-02 08:49:50 -0600 | commented question | opencv manager wasn't initialized correctly on galaxy s6! I also need help with the S6, any ideas? |
2015-09-20 21:21:55 -0600 | received badge | ● Popular Question (source) |
2015-03-30 03:20:35 -0600 | asked a question | Declare float/double mat in java Hi, how can I declare this: in Java/Android OpenCV? |
2015-02-28 12:17:48 -0600 | asked a question | How to adjust rotation matrix by a known angle Hi, I have calibrated a camera and the pitch angle considered was 0. I have the rotation mat & translation vector from using solvePnp and Rodrigues. Now, if I tilt the camera, the pitch angle changes.. how can I adjust the 3x3 rotation matrix to take into account the new pitch angle? Or the rotation vector.. The pitch angle is expressed in degrees or radians. Basically I build up an ipm image using projectPoints function that takes the previously obtained matrixes: camera mat, rotation and translation vectors from the calibration. I simply want to modify the rotation mat to take into account the new pitch angle of the camera (mobile phone). I have rotated the points 'manually' before applying the projectPoints but the computation takes too much time. Any ideas? Thanks! |
2015-02-13 16:37:48 -0600 | asked a question | Android enable OpenMP Hi, does anyone know how to enable OPenMP for an Android project using OpenCV native code? Here's what my log prints out: I know that OpenMP is included in NDK (usage example here: http://recursify.com/blog/2013/08/09/... ). I've done what it says on that page but when I use: #pragma omp for on a simple for loop that scans a vector, the app crashes with "fatal signal 11". What am I missing here? Btw I use a modified example from the samples, it's Tutorial 2 Mixed Processing. All I want is to parallelize some of the for loops and nested for loops that I have in the jni c++ file while using OpenCV. Any help/suggestion is appreciated! Thanks! |
2015-02-12 14:34:10 -0600 | commented answer | Convert rgb (brg) to rg chromaticity In the end the scope is to try to make a better segmentation and remove shadows from the road surface. I wanted to explore the option of rg-chromaticity. Thank you very much for the answer, I will try it the next days! |
2015-02-10 06:46:09 -0600 | answered a question | how use WarpPerspective in android?¿? Here's an example: http://stackoverflow.com/questions/17... Also, make sure you setup your project right and import opencv library. Follow this guide: http://docs.opencv.org/doc/tutorials/... |
2015-02-10 06:31:23 -0600 | answered a question | Problem when automatically calculating the intrinsic camera values for reduced camera resolutions Code snippet from here: http://stackoverflow.com/a/12118760/8... credits to original author. Btw, what formula are you using to compute the focal pixel? Is it something like this: focal pixel = (imageWidth/2) / tan(horizontalAngleInRadians/2) Cheers! |
2015-02-09 09:17:48 -0600 | commented answer | Convert rgb (brg) to rg chromaticity Yep, I need to normalize the new values, thanks! Any chance to adapt this to make it work as my 2nd version? Operating directly on channels? |
2015-02-08 18:18:10 -0600 | answered a question | Convert Mat to char array (and vice-versa) Eventually I changed the conversion to use pointers: Convert mat to buffer: |
2015-02-08 18:06:26 -0600 | asked a question | Convert rgb (brg) to rg chromaticity I simply can't for the love of god do a simple damn conversion and it's been bugging me over the last weekend: https://en.wikipedia.org/wiki/Rg_chro... Can anyone help out with an efficient way to do this in OpenCV? I keep getting black images, here's my current attempt: I am positive this can be done more efficiently, please help me out. Isn't there a way in which you can split the channels, divide them to the channel sum and then add up the 3 new channels into a new image? In matlab it's done like this: http://stackoverflow.com/questions/21... Edit, here's a second attempt using channels: I get the famous fatal signal 11 on Android using OpenCV in ndk. Regards! |
2015-01-29 10:53:13 -0600 | commented answer | Convert Mat to char array (and vice-versa) I only process a small portion of the entire Mat, but I will take into account your suggestion with mat.data() . Thanks for the answer, I will check the code and get back to you! |
2015-01-29 06:42:51 -0600 | commented answer | Convert Mat to char array (and vice-versa) I have a complex algorithm that accesses data from a byte[] (char[]) array in the way I described in my question. It will take too long to convert the entire algo.. Also, if I change data in the array, I will want to convert back to a Mat at a later phase. |
2015-01-29 05:49:52 -0600 | asked a question | Convert Mat to char array (and vice-versa) Hi, I tried converting a grayscale, single channel Mat (type: 8UC1) to a char[] array but somewhere it crashes. I am using android ndk and I'm coding in c++ in one of the native classes. I only get fatal signal 11 as error (probably refers to wrong memory access?). Here's the code I am using: I want to use a byte[] buffer to store the image (mat) and I need to access it's elements like this: y * width + x (where y=row index, x=column index). Because I don't have a byte[] structure in Android native, I decided to use a char[] array. Is there any faster option? And I also want to convert the byte[] array (in my case, char[] array) back to a Mat. Thanks! Edit: Converting back code (untested!): |
2015-01-20 12:49:31 -0600 | received badge | ● Enthusiast |