///|
/// # 图像变换 16-bit/float 变体 Image transforms 16-bit/float variants
///
/// 16位旋转/翻转 rotate_16 / flip_16
/// 16位/浮点旋转/翻转变换 16-bit/float rotate/flip transforms
// 图像变换 16-bit/float 变体:rotate / flip
// 支持 Image16 / ImageF 两种类型

///|
/// @see rotate_90 8-bit 版本,本函数为 Image16 变体
pub fn rotate_90_16(img : @types.Image16) -> @types.Image16 {
  let ch = img.channels
  let new_w = img.height
  let new_h = img.width
  let bpp = ch * 2
  let out : Array[Byte] = Array::make(new_w * new_h * bpp, b'\x00')
  for y in 0.. @types.ImageF {
  let ch = img.channels
  let new_w = img.height
  let new_h = img.width
  let bpp = ch * 4
  let out : Array[Byte] = Array::make(new_w * new_h * bpp, b'\x00')
  for y in 0.. @types.Image16 {
  let ch = img.channels
  let bpp = ch * 2
  let out : Array[Byte] = Array::make(img.width * img.height * bpp, b'\x00')
  for y in 0.. @types.ImageF {
  let ch = img.channels
  let bpp = ch * 4
  let out : Array[Byte] = Array::make(img.width * img.height * bpp, b'\x00')
  for y in 0.. @types.Image16 {
  let ch = img.channels
  let new_w = img.height
  let new_h = img.width
  let bpp = ch * 2
  let out : Array[Byte] = Array::make(new_w * new_h * bpp, b'\x00')
  for y in 0.. @types.ImageF {
  let ch = img.channels
  let new_w = img.height
  let new_h = img.width
  let bpp = ch * 4
  let out : Array[Byte] = Array::make(new_w * new_h * bpp, b'\x00')
  for y in 0.. @types.Image16 {
  let ch = img.channels
  let bpp = ch * 2
  let out : Array[Byte] = Array::make(img.width * img.height * bpp, b'\x00')
  for y in 0.. @types.ImageF {
  let ch = img.channels
  let bpp = ch * 4
  let out : Array[Byte] = Array::make(img.width * img.height * bpp, b'\x00')
  for y in 0.. @types.Image16 {
  let ch = img.channels
  let bpp = ch * 2
  let out : Array[Byte] = Array::make(img.width * img.height * bpp, b'\x00')
  for y in 0.. @types.ImageF {
  let ch = img.channels
  let bpp = ch * 4
  let out : Array[Byte] = Array::make(img.width * img.height * bpp, b'\x00')
  for y in 0.. (y,x)。
/// @see transpose 8-bit 版本,本函数为 Image16 变体
pub fn transpose_16(img : @types.Image16) -> @types.Image16 {
  let ch = img.channels
  let new_w = img.height
  let new_h = img.width
  let bpp = ch * 2
  let out : Array[Byte] = Array::make(new_w * new_h * bpp, b'\x00')
  for y in 0.. (y,x)。
/// @see transpose 8-bit 版本,本函数为 ImageF 变体
pub fn transpose_f(img : @types.ImageF) -> @types.ImageF {
  let ch = img.channels
  let new_w = img.height
  let new_h = img.width
  let bpp = ch * 4
  let out : Array[Byte] = Array::make(new_w * new_h * bpp, b'\x00')
  for y in 0..