Interface MultiviewSynthesizer
public interface MultiviewSynthesizer
-
Method Summary
Modifier and TypeMethodDescriptiongetDisparityMinMax(com.leiainc.androidsdk.photoformat.MultiviewImage input)
Get the min and max value of the disparity map Use this after disparity and gain/convergence have been estimatedcom.leiainc.androidsdk.photoformat.MultiviewImage
populateConvergence(com.leiainc.androidsdk.photoformat.MultiviewImage input, boolean useCrossCorrelations)
Populates convergence for MultiviewImage.com.leiainc.androidsdk.photoformat.MultiviewImage
populateDisparityMaps(com.leiainc.androidsdk.photoformat.MultiviewImage mvi)
Estimates a disparity map for every ViewPoint within a MultiviewImage.com.leiainc.androidsdk.photoformat.MultiviewImage
synthesizeViews(com.leiainc.androidsdk.photoformat.MultiviewImage input, float[] viewpointPatternX, float viewpointOffset, boolean interpolateThresholdEnabled)
Renders to a specified array of viewpoints along the X axis at the primary albedo size.com.leiainc.androidsdk.photoformat.MultiviewImage
synthesizeViews(com.leiainc.androidsdk.photoformat.MultiviewImage input, int numberOfViews, boolean... interpolateThresholdEnabled)
Renders to any number of output views along the X axis at the primary albedo size.android.graphics.Bitmap
toTiledBitmap(com.leiainc.androidsdk.photoformat.MultiviewImage input)
Renders a Multiview Image into Tiled Bitmap representation.
-
Method Details
-
populateDisparityMaps
com.leiainc.androidsdk.photoformat.MultiviewImage populateDisparityMaps(com.leiainc.androidsdk.photoformat.MultiviewImage mvi)Estimates a disparity map for every ViewPoint within a MultiviewImage. Works for MultiviewImage with 1 or 2 views (mono or stereo), invalid for any other amount of views- Returns:
- MultiviewImage
-
populateConvergence
com.leiainc.androidsdk.photoformat.MultiviewImage populateConvergence(com.leiainc.androidsdk.photoformat.MultiviewImage input, boolean useCrossCorrelations)Populates convergence for MultiviewImage. Works for MultiviewImage with 1 or 2 views (mono or stereo), invalid for any other amount of views- Parameters:
useCrossCorrelations
- should be set to True- Returns:
- MultiviewImage
-
synthesizeViews
com.leiainc.androidsdk.photoformat.MultiviewImage synthesizeViews(com.leiainc.androidsdk.photoformat.MultiviewImage input, int numberOfViews, boolean... interpolateThresholdEnabled)Renders to any number of output views along the X axis at the primary albedo size. Parameters for the synthesis are taken from MultiviewImage itself (gain/ convergence/ depth maps for every view)- Parameters:
input
- MultiviewImage to render fromnumberOfViews
- amount of view to renderinterpolateThresholdEnabled
- - deprecated- Returns:
- MultiviewImage with desired amount of views stored as ViewPoint
-
synthesizeViews
com.leiainc.androidsdk.photoformat.MultiviewImage synthesizeViews(com.leiainc.androidsdk.photoformat.MultiviewImage input, float[] viewpointPatternX, float viewpointOffset, boolean interpolateThresholdEnabled)Renders to a specified array of viewpoints along the X axis at the primary albedo size. Parameters for the synthesis are taken from MultiviewImage itself (gain/ convergence/ depth maps for every view)- Parameters:
input
- MultiviewImageviewpointPatternX
- The x-coordinates of the viewpoints when gain = 1 and viewpointOffset = 0, where left/right are at +/-0.5.viewpointOffset
- Amount to translate viewpoint pattern after scaling by gain.interpolateThresholdEnabled
- deprecated
-
getDisparityMinMax
android.util.Pair<Float,Float> getDisparityMinMax(com.leiainc.androidsdk.photoformat.MultiviewImage input)Get the min and max value of the disparity map Use this after disparity and gain/convergence have been estimated- Parameters:
input
- MultiviewImage
-
toTiledBitmap
android.graphics.Bitmap toTiledBitmap(com.leiainc.androidsdk.photoformat.MultiviewImage input)Renders a Multiview Image into Tiled Bitmap representation.Throws an Exception when the albedos are not of same resolution.
- Parameters:
input
- input multiview image to be converted into bitmap- Returns:
- A single bitmap containing all the albedos in the multiview image, arranged in row major order
-