-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving from ImageJ to OpenCV #35
Comments
@jwijffels @dmi3kno do you have any advice on this? |
Is this the location of the ImageJ macros you are using on that site? https://github.com/pennekampster/bemovi/tree/master/inst/ImageJ_macros |
Yes - these are the macros. We have elicited the Video_overlay as we are creating the overlays (video overplayed with the id of the particle) now using ffmpeg and subtitles. |
The |
morphology is available in the opencv R package |
Thanks for your reply, @jwijffels For details, I would ask @pennekampster to chime in, as he has written the macros - I am only using them. But in principle, they are
I have done, based on my question at the OpenCV Forum some reading, and opened the issue pennekampster/bemovi#51 which is trying to summarise what I think would be necessary to do and also points to some C++ functions in OpenCV. So far, I have identified, based on the example by OpenCV, the cv:BackgroundSubtractor to subtract the background, and https://learnopencv.com/object-tracking-using-opencv-cpp-python/ to track the particles to get info on direction and speed. Finally, something along the lines of https://docs.opencv.org/3.3.1/d3/dc0/group__imgproc__shape.html#ga107a78bf7cd25dec05fb4dfc5c9e765f to obtain the shape measurements. This is very much in the early stages, which is why I am looking for ideas and suggestions. Also, I am not a C++ programmer (rather R), wherefore using the OpenCV R package would be ideal. |
Based on skimming pennekampster/bemovi#51, jeroen has did some example background substraction with cvmat_mog2, you can do image binarisation with R pkg image.binarization, morphology is available in the package, optical flow algorithms have currently not been mapped to R variants. So no sure how far you will get with the current functionalities inside the package but some modifications, I think it is possible you could replace your current ImageJ macros. |
That sounds good. But I have still a few questions:
|
Apologies, morphology was available in R package magick. Isn't mapped to R functions in R package opencv |
I have a question concerning the OpenCV integration in R.
I am involved in the package bemovi (maintainer: @pennekampster) which is doing particle identification and measuring based on a video file, recorded e.g. from a microscope (for examples see http://bemovi.info/pages/example.html).
It uses ImageJ to do the processing and therefore Java. The package works, but we regularly have problems caused by Java versions and the whole processing is a bit cumbersome (creating ImageJ macros to do the processing based on a template).
So we would like to switch to another image processor engine and OpenCV seems to be the best option. Could somebody here give their opinion if you think that would be possible using rOpenCV?
It would be great, if we could give some ideas and suggestions in this regard, as one of us have used OpenCV before.
The text was updated successfully, but these errors were encountered: