How would I use the imagemagick library with processing? - java

I want to use the imagemagick library (more specifically: the shepards distortion part of it) with processing.org. Does anyone know how to do that? Or if that is not possible, does anyone know of another library that can do this type of distortion?
I've already found these related questions: one,
two and
three

Try to Look into the JMagick, it is a wrapper of ImageMagick. However if you wish an interface to the ImageMagick commandline im4java API should be useful. I didn't use im4java myself. But the following portion is taken from the site:
JMagick is a thin JNI layer above the ImageMagick C-API. im4java in
contrast just generates the commandline for the ImageMagick commands
and passes the generated line to the selected IM-command (using the
java.lang.ProcessBuilder.start()-method).
Disadvantages of the approach: your are limited to the capabilities of
the IM commands. With JMagick, you have access to the low-level
interface of IM and therefore you have a very detailed control of the
processing of images. And you have better performance.

Related

How to use the FaceRecognizer library created in openCV from Java?

I am trying to implement a face recognizer in java. I got this code example and made changes to fit my requirements on how the system should behave. It works but then when I have images of the same person in different light intensities its efficiency drops. I read that there is a library inserted in openCV for faceRecognizer but then its samples are implemented in c++. Is there any way i can use this library to code in java? and also if we can use it then will it increase the efficiency of the code?
Please do provide some help on this. Stuck on it badly...
You can create a C++ dll for java. You should write a wrapper class (in C++) which uses your C++ codes. Function definitions of the wrapper class should use JNI. This link here should be helpful (it was for me). After you implement the wrapper class, export it as a dll.
Just Use java cv so that you can use all c++ function in java.
Download all javacv jar files and try to install javacv to your system
Just look through how to setup javacv in your system.
I think this should do the magic in java
FaceRecognizer model=createFisherFaceRecognizer();
model.train(images,label);
For prediction
Int id=model.predict(img);

JPen alternative for Java program

I want to develop a small Java program using some input like the pen of a Wacom graphictablet and found only the very active JPen project but are there some more possible alternatives without JNI or JNA (without any additional needed dll files), a pure Java implementation?
You can take a look at JTablet. From another SO thread.
It seems JPen moved to GitHub and this might be the best solution at the moment.
The other alternative solutions are not developed and maintained anymore.
https://github.com/nicarran/jpen

Image processing in Java like MATLAB Image Processing Toolbox

Does it exist a solution for Java that allows to working with images in a very similar way to MATLAB IPT?
I mean, are there some libraries to do something like IPT4Java.imfilter(A, F) or IPT4Java.fspecial('average', [3 3])?
If not, what is the best solution to implement this kind of approach?
Java Advanced Imaging (JAI) supports a multitude set of filters that you can apply on images.
You could have a look at the Java wrapper around OpenCV:
http://code.google.com/p/javacv/

RMagick-like image processing library for Java

Is there any Java image processing library that is as easy to use as and provides the set of functionalities provided by RMagick? (I have seen JMagick and unfortunately that is not the kind of library I am looking for.)
EDIT: Please note that the speed does not concern us as such. What we are looking for is an easy-to-use library that provides many common operations built-in.
Check out this, especially JAI. i dont have experience with this libs, but its on my todo list. there are demos somewhere on the site. maybe it is what you are looking for?!
There's ImageJ, which boasts to be the
world's fastest pure Java image processing program
It can be used as a library in another application. It's architecture is not brilliant, but it does basic image processing tasks.
It's not a pure Java solution, but the IM4JAVA project works for many uses. Im4Java itself is a pure Java library that uses the commandline version of ImageMagick as its back-end. It's easy to use and exposes pretty much all the functionality of ImageMagick without the dangers of including native code in your app. That means you can safely use it in application servers etc. without worrying that a crash in the native code will bring down your whole server.

face detection through webcam using java in ubuntu linux

I am working on a project which requires face detection through webcam.Suggest me any libraries that I can use to do this.i found one named openCV but it is for windows only.plz suggest some other methods also.Thank you.
OpenCV is almost a standard in computer vision. It works on both unix like and windows platforms - http://opencv.willowgarage.com/wiki/. Follow the installation manual and the basic tutorials to get started.
There is a processing library that calls OpenCV functions. That way you could use the OpenCV functionality without going down to c++ yourself. You can use the processing library with java without using the whole processing stuff.

Categories