pub fn wrap<T: HasAfEnum>(
input: &Array<T>,
ox: i64,
oy: i64,
wx: i64,
wy: i64,
sx: i64,
sy: i64,
px: i64,
py: i64,
is_column: bool,
) -> Array<T>Expand description
Converts unwrapped image to an image
Wrap takes an unwrapped image (see unwrap()) and converts it back to an image.
The inputs to this function should be the same as the inputs used to generate the unwrapped image.
§Parameters
inputis the output of unwrap function calloxis the 0th-dimension of output imageoyis the 1st-dimension of output imagewxis the block window size along 0th-dimension betweenwyis the block window size along 1st-dimension betweensxis the stride along 0th-dimensionsyis the stride along 1st-dimensionpxis the padding used along 0th-dimension between [0, wx).pyis the padding used along 1st-dimension between [0, wy).is_columnspecifies the layout for the unwrapped patch. If is_column is false, the rows are treated as the patches
§Return Values
Image(Array) created from unwrapped Image(Array)