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

Data view for Histogram1d #76

Open
frauzufall opened this issue Jun 19, 2018 · 1 comment
Open

Data view for Histogram1d #76

frauzufall opened this issue Jun 19, 2018 · 1 comment

Comments

@frauzufall
Copy link
Member

It would be great have a data view for Histogram1d objects in order to do something like this:

Histogram1d<FloatType> histogram = ij.op().image().histogram(img);
ij.ui().show(histogram);

Currently this crashes with java.lang.ArrayIndexOutOfBoundsException: 1 at this line because the DefaultDatasetView cannot handle 1D.

@ctrueden
Copy link
Member

I just ran into this again.

More generally, we should support display of 1D images (by converting them to a 2D with length 1 in Y). And if it's a Histogram1d specifically, use the PlotService in whatever form it ends up, once that is complete and merged.

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