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

Why do two definitions of struct PyramidLayerInfo exist? #45

Open
derselbst opened this issue Mar 26, 2023 · 0 comments
Open

Why do two definitions of struct PyramidLayerInfo exist? #45

derselbst opened this issue Mar 26, 2023 · 0 comments
Labels
question Further information is requested

Comments

@derselbst
Copy link

I was trying to use ISingleChannelPyramidLayerTileAccessor::Get(), which needs a PyramidLayerInfo struct. I didn't pay much attention to where this struct is actually defined. So I just took one instance obtained by CCZIReader::GetPyramidStatistics() and wanted to pass it to the accessor. To my surprise, it didn't compile, because the struct PyramidLayerInfo is defined in two places, leading to the error:

cannot convert from 'libCZI::PyramidStatistics::PyramidLayerInfo' to 'libCZI::ISingleChannelPyramidLayerTileAccessor::PyramidLayerInfo'

Ofc, I could just manually convert it. But I do wonder if there is a reason why there are two definitions of the very same PyramidLayerInfo struct? Would you consider removing one of the definitions?

@m-ringler m-ringler added the question Further information is requested label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants