We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To my knowledge, there's currently no op available to compute modal values.
The ImageJ 1.x implementation is e.g. here in ShortProcessor
ShortProcessor
As a workaround, the mode can be computed as in this gist:
mode
import net.imglib2.algorithm.stats.Max histogram = ops.run("histogram", input) cursor = Max.findMax(histogram) value = input.firstElement().copy() histogram.getCenterValue(cursor.getLongPosition(0), value)
See also these two forum topics.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To my knowledge, there's currently no op available to compute modal values.
The ImageJ 1.x implementation is e.g. here in
ShortProcessor
As a workaround, the
mode
can be computed as in this gist:See also these two forum topics.
The text was updated successfully, but these errors were encountered: