You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JFeatureLib
Hello, I am using LocalBinaryPatterns from the library to extract texture features from my images. I noticed that not all combinations of radii and point numbers work. For example, setting the radius to 1 and the number of points to a value between 8 and 14 works, but setting the number to 16 causes an ArrayIndexOutOfBoundsException. I am not sure if this is intended behaviour or a bug. Indeed it might be not very reasonable to use a lot of points in small neighborhoods, but at least from a theoretical point of view there should be almost no limitation due to interpolation, right? Anyway, I can see that it might be reasonable to enforce a maximal number of points per neighborhood in practice. But then it would be helpful to know this maximal number to avoid exceptions being thrown. Is there any rule which allows to derive the maximal number of points possible to use depending on the chosen neighborhood size?
Thanks and best regards,
Birgit
Franz Graf
unread,
Aug 30, 2015, 4:31:11 PM8/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jfeat...@googlegroups.com
Hi Birgit,
can you provide a small and simple test case for this so that I can
reproduce the issue?
When I try it
ByteProcessor ip = new ByteProcessor(50, 50);
LocalBinaryPatterns lbp = new LocalBinaryPatterns();
lbp.setNumPoints(16);
lbp.setRadius(1);
lbp.run(ip);
I do in deed get an Exception, yet I get an IllegalArgumentException
from the Histograms class (which I am trying to fix).
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jfeat...@googlegroups.com
Hey Birgit,
I located the problem. In the current implementation you may only
choose a maximum of 14 for numPoints.
I changed it to increase this limit to 30. Also there should be a
reasonable exception being thrown as soon as a param is out of range.
Can you check out the current snapshot from github and hopefully
confirm that it's working?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JFeatureLib
Hi Franz, I checked out the latest snapshot and can confirm that it works. With up to 30 points the calculation is now working, and if the specified point number is too large, an exception is thrown. Thanks for your quick response! Cheers,
Birgit
Franz Graf
unread,
Sep 1, 2015, 3:17:25 PM9/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jfeat...@googlegroups.com
Hey Birgit,
thanks for the quick response and for confirming that it works.