You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converters would be a good basis for convert ops that go from RAI to Img and II to Img. @awalter17 and I think we would need six initially: RAIToArrayImg (only matches if element count is less than maxint), RAIToCellImg (but with what cell size?), RAIToListImg, and then those three again for II, and in that order of priority. This would let us implement convert.imgView.
But what about create.img? It would be nice to reuse the logic above, but only for factories. We could make e.g. RAIToImgFactory converters like RAIToArrayImgFactory, which would obviously be lossy. But is this really a "conversion"? Would someone want to pass a RAI as an argument to something that takes an ImgFactory? I don't think so.
I'm going to close this in favor of #103. In that PR, I added converters for all image types to/from one another. That does not include IterableInterval, though—I agree with @imagejan that we cannot (or at least should not) write a converter from IterableInterval generally to any of the RAI-based image types. I'm also going to ignore my musings above about ImgFactory for the time being.
Converters would be a good basis for convert ops that go from RAI to Img and II to Img. @awalter17 and I think we would need six initially:
RAIToArrayImg
(only matches if element count is less than maxint),RAIToCellImg
(but with what cell size?),RAIToListImg
, and then those three again forII
, and in that order of priority. This would let us implementconvert.imgView
.But what about
create.img
? It would be nice to reuse the logic above, but only for factories. We could make e.g.RAIToImgFactory
converters likeRAIToArrayImgFactory
, which would obviously be lossy. But is this really a "conversion"? Would someone want to pass a RAI as an argument to something that takes anImgFactory
? I don't think so.Migrated from #72 (comment)
The text was updated successfully, but these errors were encountered: