2018-02-05 03:13:29 -0600 | received badge | ● Popular Question (source) |
2015-11-25 14:18:27 -0600 | answered a question | Segfault in convertTo Android OpenCV 2.4.x->3.0 Ok. I found the answer by myself. There was an error with the Opencv 3.0 Gradle Module for the Java frontend. Even though I thought I've updated the files it seems, that it was still on 2.4.11. Anyway. Now it works! :) |
2015-11-23 00:51:20 -0600 | asked a question | Segfault in convertTo Android OpenCV 2.4.x->3.0 Yesterday I moved my project from OpenCV 2.4 to 3.0. I've tested the code in VisualStudio. Everything works fine, but in Android I'm getting errors when I'm trying to run the code. I've built the library with OpenCL enabled (see code bellow). A simple example app, that does edge detection on CPU/GPU works fine, but the app, which was 2.4.x previously is getting weired errors: I'm accessing a Then I do some conversion: There is an error comming and the App crashes: The exact same code works with the old Version. I think there is a problem with the library? I've built it using My (more) |
2015-11-10 00:28:38 -0600 | commented question | Android OpenCL DFT vs. CPP Version is very slow! Ok. You're right. I've changed canny to Another Question: Why is the first "run" still slow (twice as long as CPU-version) and only the second "run" actually speeds it up? Is it because the kernel needs to be created on the GPU-side? Do you have any good ressources for that? And also a list with "stable" functions? Thank you very much! |
2015-11-09 16:42:57 -0600 | received badge | ● Editor (source) |
2015-11-09 16:38:49 -0600 | commented question | Android OpenCL DFT vs. CPP Version is very slow! I've changed the code to some easier algorithm |
2015-11-09 13:56:10 -0600 | commented question | Android OpenCL DFT vs. CPP Version is very slow! Thank you for your comment, but still nothing has changed. Would it mak sense to read the Image as OpenGL texture and process it like the Tutorial 4 suggests?
I need to say, that the Tutorial, with the OpenGL works perfectly fine and really fast, but loading the images with |
2015-11-09 00:24:59 -0600 | commented question | Android OpenCL DFT vs. CPP Version is very slow! Yeah, I did that. It half the time and is then still longer than the CPU-Version - or even worth - gives me the error listed above. I think I need to deallocate something? |
2015-11-08 16:06:49 -0600 | asked a question | Imread() Umat for OpenCL in Android doesn't work!? Finally I was able to compile the Code in the Tutorial 4 of Android OpenCV here . It works flawelessly on my Xperia Z1. It speeds up processing time about 4-5 times. The step to convert GL-Image to UMat is here: How could I use the code above with an image from the file-system using |
2015-11-08 15:57:03 -0600 | commented question | using OpenCv 3.0 with OpenCl 1.1 devices |
2015-11-08 10:31:58 -0600 | asked a question | Android OpenCL DFT vs. CPP Version is very slow! Hey, I've started to learn a bit about Android GPU programming and wanted to implement the DFT with the new T-API in OpenCV 3.0. My Device is a Sony XPERIA Z1 which runs with OpenCL 1.1 (on Lollipop - hope that doesnt cause problems? Khronos website says, that Adreno 330 supports KitKat) When comparing the two codes, the GPU-Version takes ~3200ms and the CPU-Version ~2800 ms .. What could be the issue? Any ideas? UPDATE I've changed the code to something easier: Running the Code the first time is slowlier, than the second time, but takes exactly the same time than the CPU-implementation. Any Ideas? |
2015-10-15 00:43:31 -0600 | asked a question | Using OpenCL and OpenCV in Android Studio (Tutorial 4) I need to say, that I'm not very familiar with OpenCL and I simply wanted to start programming, just having an impression on how the computation is acclerated on mobile devices (in my case Xperia Z1 which has OpenCL drivers). What I've tried so far are several tutorials like the one from OpenCV: http://docs.opencv.org/master/d7/dbd/... and this here (and several other slides): http://de.slideshare.net/noritsuna/ho... But I simply cannot get started with the OpenCL part. The OpenCV part is not a problem, but I can't get the OpenCL librarys etc. to work (Placing the ".so" file from the phone? installing the adreno-sdk?..). Does anybody know how I have to setup Android Studio and/or Windows to get started with the Tutorial supported by OpenCV? Since the NDK-Module is a part of the Gradle-build option, it shouldn't be that hard? Thank you very much! |
2015-07-03 01:00:58 -0600 | received badge | ● Enthusiast |
2015-07-02 04:44:44 -0600 | received badge | ● Student (source) |
2015-07-02 02:12:52 -0600 | asked a question | Possbile to align two Images ('nonlinear' warp) with OpticalFlow-Information? Super-Resolution Inline Hologram reconstruction I've a set of several images which are shifted to small amounts in X/Y-direction. Starting from e.g. four low resolution images, I want to reconstruct it to one high resolution image. Therefore I need to get the appropriate shift.
Currently I'm using the Android Version of My setup to acquire is the following: LED => Pinhole => Distance Z (light propagates) => transmissive biological sample => small distance z (interference) => Sensor This represents an inline Hologram acquistion as seen in the Papers like this My goal is to shift the LED in X/Y-Direction. This cases a shift of the object/interference-pattern on the sensor. By "re-shifting" the object and merging the LR-Images, I can get the Sub-Pixel superresolution. My problem is, that the Shift seems to be not linear. Due to a magnification depending on the distance from the optical axis. I was thinking that the camera calibration method could help, but didn't have the time to look into it. Another way might be to us the My idea:
Right now there is something like "Motion Blur" in the resulting image. The Registration works quiet ok, but not good enough for Super-Resolution. ;) Thank you very much! |
2015-06-13 12:41:15 -0600 | asked a question | Easy way to Convert Magnitude/Phase back to Real/Imag for DFT? I'm facing a poblem in OpenCV4Android. I'm trying to do a phase recovery of an incoming image like the Gerchber-Saxton algorithm does. I'm propagating the lightfield with a "Fresnel-Propagator" along Z-axis. This works quiet well. In Matlab code I have a complex-datatype with phase/magnitude as well as real/imaginary part. I'm having no problems to switch forth and back, but in OpenCV the exact same operation seems to have no proper result. Converting back and forth doesnt give same results I've written some code for Imag/Real conversion like the one below (real sin is simply a cosine) The alternative was using PolarToCart-function, but I'm not sure if I could use it to convert the Euler-representation of a compolex number to compnent-representation. Does anybody know how to solve this issue? |
2015-05-08 23:48:51 -0600 | answered a question | Super resolution on Android Bad question though, but how do I actually build this jni? Would I just take one of the Android OpenCV Native Tutorials on the web, replace the C-Code with the Superresolution code, build header and compile? I would love to see something in my Java code like .. Thank you! |
2015-05-08 17:08:31 -0600 | received badge | ● Supporter (source) |