mmayo888 / ImageFilter

WEKA filter that uses LIRE to extract image features
24 stars 19 forks source link

setImageDirectory in filters #4

Open MJ-DEV91 opened 6 years ago

MJ-DEV91 commented 6 years ago

Hi. I use PHOGFilter for classifying some images:

PHOGFilter phogFilter = new PHOGFilter();
phogFilter.setImageDirectory(file.getParent());
phogFilter.setInputFormat(instances);
Instances filteredTest = Filter.useFilter(instances, phogFilter);

Can I use the bytes of image or input stream of the image instead of path? phogFilter.setImageDirectory(file.getParent());

mmayo888 commented 5 years ago

Not currently. It would require a refactoring of the process method to seperate the code for reading the images from the code for feature extraction and reassembly into an instance. This is a feature that could be added in a future update.