How to create BRISK Feature Detection with Parameters on OpenCv Java 2.4.9 - javacv

I know there is constructor for BRISK in OpenCv C++ so that one can set up threshold,octave values but I can't find a similar thing on OpenCv Java. I know there is create() method to create BRISK but cannot set up values such as threshold and octave on Java.
How can I achieve this on OpenCv Java 2.4.9, is it possible?

Related

GalSim C++ Interface

I'm trying to build a project which depends heavily on GalSim and is very time-consuming. I've tried the Python API and Numba decorators, but none of them is satisfying. So I want to call GalSim routines in C++. However, I can not find any instructions on how to build a C++ library from source code. I guess that is possible given that C++ source code and headers are already there. Does anyone know how to do that?
Thanks!

Filters in VTK for exact vessel segmentation

I do not want to use ITK for segmentation .Is there any filters in VTK to perform precised vessel segmentation for MIP(Maximum intensity projection)Dicom images.
I tried by installing itk but i have done my code in visual studio 8 and the latest version of itk is not supported in VS-8.So i imported my vs-8 project to Visual studio 2015,but there are so many errors in them ,i spend many days correcting that error but no use.
That's why i am asking whether there any filters in VTK to segment the blood vessels?
VTK is mostly used for visualization and less for processing the data.
What you are looking for is called a "vesselness filter". There are a few implementations of such a filter on github:
https://github.com/search?q=vesselness+filter
The first one, https://github.com/ntnu-bioopt/libfrangi, seems to use only openCV so I guess that could be a good choice for you if you want to limit your dependencies.
Edit:
There is a library called VMTK for vessels analysis. It's based on VTK and it includes a vesselnessfilter. You can directly input VTK image data, so I guess that's the closest framework that can find! Also some other features of the library might be of interest to you.
Look here: http://www.vmtk.org/doc/html/classvtkvmtkVesselnessMeasureImageFilter.html

Can I use RxJava2 and RxAndroid in a single java class library?

I'm tasked with creating an SDK that can be consumed from both Android & Java applications using ReactiveX programming. I already have an android project using RxAndroid created, but now I need to extend it with RxJava2.
The question I'm facing is whether I should create 'regular' java class library and use it for both scenarios or create 2 separate packages (which would mean a lot of duplicate code + maintenance).
Is this even possible? And if so, is it a good practice?
whether I should create 'regular' java class library and use it for both scenarios
Yes. What I would do to start is simply change your Android library project to be a standard Java library and replace RxAndroid dependency by RxJava. Most code should still compile. Code which doesn't will mostly use schedulers provided by RxAndroid and can be changed to take Scheduler parameters.
Then create an Android Library project which depends on the Java Library and put the RxAndroid-specific code there.
As an addition to #AlexeyRomanov's answer, feel free to check out this library which could be used for both Android and Java projects: https://github.com/JakeWharton/RxRelay.
Its basically an extension to RxJava, but it might give you a solid idea where to go. Good luck!

How To Use libGLESv2.so in Your Program

I am accustomed to linking against libGL.so on most Linux distributions. Either mesa's implementation or NVIDIA's. However, I would really like to limit myself to OpenGL ES 2.X functionality, so I am attempting to link against and use libGLESv2.so. However, I see that glX functions are not present in libGLESv2.so dynamic section:
nm --dynamic /usr/lib64/nvidia/libGLESv2.so | grep glX
Also attempting to link agains libGLESv2.so results in undefined references to glX functions.
This leads me to my question. What is the correct way to "GetProcAddress" while dynamically linking against libGLESv2.so? Also how do you construct the appropriate context without glX?
I'm not sure how easy this will be for you to figure out and how relevant for your applications but in pi3d we get the drawing context using libEGL.so (or libegl.dll from ANGLE on windows).
This where the dynamic libraries are found and loaded
https://github.com/tipam/pi3d/blob/master/pi3d/constants/init.py
and this is where the surface is created and attached to the GLESv2 functions
https://github.com/tipam/pi3d/blob/master/pi3d/util/DisplayOpenGL.py

OpenCV Deploying a partial project as static or dynamic library or something else?

I'm fairly new to OpenCV and Visual Studio as well. My question is not so much technical but theoretically anyways:
I'm working on a bigger project but do not have access to all its subcomponents etc. I wrote a few classes and functions that other members want to use. However, I'm using some OpenCV specific things (because I'm lazy and dont want to implement everything all by myself) but the other members dont use it and they want to keep the project size relatively small.
My question is: How can I provide my code as a library or something similar that includes all my opencv dependencies? Can I create a dll of my code and just ship the opencv dlls with it? Is there a way to bundle everything into one file with only one header?
How would you solve this problem?
Summarizing: I want my functions in a library and shipped as small as possible (with opencv dependencies)
KR
Put all your code in a DLL, and then ship OpenCV DLLs along with yours.
Or: put all your code in a DLL, and perform static linking with OpenCV.

Resources