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

Repeated computation of co-occurrence matrix in haralick features #634

Open
MaximLippeveld opened this issue Jan 4, 2021 · 0 comments
Open

Comments

@MaximLippeveld
Copy link

Hi,

A question on haralick features.

All haralick features call the getCooccurenceMatrix function on the input image. If I want to compute N different haralick features on an image, the same co-occurrence matrix is computed N times. Unfortunately, the computation of this matrix is often the most intensive part of the feature computation. Ideally, this matrix would be precomputed once per image.

Perhaps this can be solved by overloading the compute function, adding a signature that takes a final double[][] matrix? I am not sure in what interface or class this signature should be defined, however. Or maybe there is a better way 🙂

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

1 participant