tfg.image.matting.reconstruct
Stay organized with collections
Save and categorize content based on your preferences.
Reconstruct the matte from the image using the linear coefficients.
tfg.image.matting.reconstruct(
image: type_alias.TensorLike,
coeff_mul: type_alias.TensorLike,
coeff_add: type_alias.TensorLike,
name: str = 'matting_reconstruct'
) -> tf.Tensor
Reconstruct the matte from the image using the linear coefficients (a, b)
returned by the linear_coefficients function.
Args |
image
|
A tensor of shape [B, H, W, C] .
|
coeff_mul
|
A tensor of shape [B, H, W, C] representing the multiplicative
part of the linear coefficients.
|
coeff_add
|
A tensor of shape [B, H, W, 1] representing the additive part
of the linear coefficients.
|
name
|
A name for this op. Defaults to "matting_reconstruct".
|
Returns |
A tensor of shape [B, H, W, 1] containing the mattes.
|
Raises |
ValueError
|
If image , coeff_mul , or coeff_add are not of rank 4. If
the last dimension of coeff_add is not 1. If the batch dimensions of
image , coeff_mul , and coeff_add do not match.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2022-10-28 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[]]