JFeatureLib in JRuby on Rails.

6 views
Skip to first unread message

Aristeidis Vlachopanos

unread,
Feb 13, 2015, 4:14:24 PM2/13/15
to jfeat...@googlegroups.com
Hello, 

I am trying to use this library in JRuby on Rails. In my controller I have included the JFeatureLib-1.6.1-jar-with-dependencies.jar and I have the following commands:

imgf = java.io.File.new(path_to_img)
image =  ColorProcessor.new(ImageIO.read(imgf))
ch = ColorHistogram.new(4,4,4)
ch.run(image)

How do I get the vector of the histogram? I understand I have to call the function getFeatures() but at what point? 

Franz Graf

unread,
Feb 17, 2015, 1:31:43 AM2/17/15
to jfeat...@googlegroups.com, Aristeidis Vlachopanos
Hi!

Nice to hear that you are using JFeatureLib! Have you had a look at the examples? https://github.com/locked-fg/JFeatureLib-Demo/blob/master/src/main/java/de/lmu/dbs/ifi/jfeaturelib/examples/HaralickDemo.java

I think this could help you.

Good luck!
Franz
Dr. Franz Graf
http://www.Locked.de
Reply all
Reply to author
Forward
0 new messages