mobie / mobie-viewer-fiji

BSD 2-Clause "Simplified" License
30 stars 12 forks source link

Accumulate projector is only used if there is more than 1 source #829

Open tischi opened 1 year ago

tischi commented 1 year ago

Due to this our custom alpha blending is not applied for one source only.

tischi commented 1 year ago

Discussed with Tobias and this is indeed the case. He suggested adding an empty source such that there are always two....

tischi commented 10 months ago

I ran into this again.

tischi commented 10 months ago

@tpietzsch are there any news? Is it still the case that the AccumulateProjector is only used if there is more than one source? It would be nice if this was configurable.

If not, as you suggested, I would need to add an empty source. What seems to make this a bit tricky/ugly is that this source must encompass all the other sources. That means I would need to somehow choose its size depending on the shown sources.

Could you help me a bit by suggesting how to create such an empty source that is very large? Do you have code for this? I would probably go for a FunctionRandomAccessible and create a Source from this, but maybe there are better ways?