MultiviewImage
instance. MultiviewImageDecoder
by calling MultiviewImageDecoder.getDefault()
MultiviewImageDecoder
provides different methods to decode images. In the previous sections, we decoded a LIF image using raw byte[]
as well as decoded a SBS image by using the File Uri
.Uri
. context
.Uri
or contentUri
for the image on the device's internal storage.decode()
without the output image resolution will throw an Exception if all decoded viewpoints are not the same resolution.decode()
without output image resolution will throw an Exception if all decoded viewpoints are not the same resolution.MultiviewImageDecoder
to detect the image file type. Uri
and returns a MultiviewFileType
. The returned Multiview File types are categorized belowMultiviewFileType.H4V_BINARY
MultiviewFileType.H4V_XMP
MultiviewFileType.TWO_BY_ONE
MultiviewFileType.TWO_BY_TWO
null
if the Uri
specified is not a supported file type._2x1
_2x2
MultiviewSynthesizer2
. You can obtain an instance of this class as shown below.MultiviewSynthesizer