公開類別 Rot90Op
將圖片逆時針旋轉。
公用建構函式
Rot90Op()
建立 Rot90 Op,並將圖片逆時針旋轉 90 度。
|
|
Rot90Op(int k)
建立 Rot90 運算,將圖片逆時針旋轉
k 次 90 度。 |
公用方法
TensorImage | |
int |
getOutputImageHeight(int inputImageHeight, int inputImageWidth)
指定輸入圖片大小時,計算預期輸出圖片的高度。
|
int |
getOutputImageWidth(int inputImageHeight, int inputImageWidth)
指定輸入映像檔大小時,計算預期輸出圖片的寬度。
|
PointF |
inverseTransform(PointF 點、int inputImageHeight、int inputImageWidth)
將結果圖片的座標系統,轉換為其中一張輸入圖片。
|
繼承的方法
公用建構函式
public Rot90Op ()
建立 Rot90 Op,並將圖片逆時針旋轉 90 度。
public Rot90Op (int k)
建立 Rot90 運算,將圖片逆時針旋轉 k
次 90 度。
參數
k | 圖片旋轉 90 度的次數。如為正值,圖片將會逆時針旋轉。如果為負數,運算就會順時針旋轉圖片。 |
---|
公用方法
公開 TensorImage 套用 (TensorImage 映像檔)
對指定圖片套用指定的旋轉角度,並傳回結果。
注意:輸入 image
的內容會改變,而 image
是和輸出的同一個例項。
參數
圖片 | 輸入圖片 |
---|
傳回
- 輸出圖片。
public int getOutputImageHeight (int inputImageHeight, int inputImageWidth)
指定輸入圖片大小時,計算預期輸出圖片的高度。
參數
inputImageHeight | |
---|---|
inputImageWidth |
public int getOutputImageWidth (int inputImageHeight, int inputImageWidth)
指定輸入映像檔大小時,計算預期輸出圖片的寬度。
參數
inputImageHeight | |
---|---|
inputImageWidth |
public PointF inverseTransform (PointF Point、int inputImageHeight、int inputImageWidth)
將結果圖片的座標系統,轉換為其中一張輸入圖片。
參數
分 | 擷取自結果座標系統的點。 |
---|---|
inputImageHeight | 都與輸入圖片的高度有關 |
inputImageWidth | 都與輸入圖片的寬度相等 |
傳回
- 帶有輸入圖片座標系統座標的點。