Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setImageDirectory in filters #4

Open
MJ-DEV91 opened this issue Oct 2, 2018 · 1 comment
Open

setImageDirectory in filters #4

MJ-DEV91 opened this issue Oct 2, 2018 · 1 comment

Comments

@MJ-DEV91
Copy link

MJ-DEV91 commented Oct 2, 2018

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants