JFeatureLib icon indicating copy to clipboard operation
JFeatureLib copied to clipboard

Support Roi

Open thorstenwagner opened this issue 8 years ago • 4 comments

Hi,

thank you for this nice library which saved me a lot of time.

However, it would be nice if one could set ROIs for processing an image. At the moment I crop the image to the Roi and then apply the selected feature. However, it would be faster just to use the Roi during calculation.

Best, Thorsten

thorstenwagner avatar Nov 20 '17 08:11 thorstenwagner

Hi Thorsten, have you had a look at https://github.com/locked-fg/JFeatureLib/wiki/HowTo#using-masks ? Cheers Franz

locked-fg avatar Nov 20 '17 21:11 locked-fg

No, but this option is for command line, right? I use JFeatureLib as java library inside my programm.

thorstenwagner avatar Nov 25 '17 15:11 thorstenwagner

Right, it's a cmd line option but you can have a look at the code how it's done. Unfortunately it's so long ago that I wrote the code that I'd have to look into the code closely myself to tell you.

locked-fg avatar Nov 25 '17 20:11 locked-fg

It's actually not that complicated: Have a look at https://github.com/locked-fg/JFeatureLib/blob/master/src/main/java/de/lmu/ifi/dbs/jfeaturelib/utils/Extractor.java And where /how the masking option is used.

locked-fg avatar Nov 25 '17 21:11 locked-fg