公用類別 TensorOperatorWrapper
讓 TensorOperator 具有與 TensorImage 執行的轉接器。
公用建構函式
公用方法
TensorImage |
apply(TensorImage 圖片)
|
int |
getOutputImageHeight(int inputImageHeight, int inputImageWidth)
指定輸入圖片大小時,計算預期輸出圖片的高度。
|
int |
getOutputImageWidth(int inputImageHeight, int inputImageWidth)
指定輸入映像檔大小時,計算預期輸出圖片的寬度。
|
PointF |
inverseTransform(PointF 點、int inputImageHeight、int inputImageWidth)
將結果圖片的座標系統,轉換為其中一張輸入圖片。
|
繼承的方法
公用建構函式
public TensorOperatorWrapper (TensorOperator 運算空間)
將 TensorOperator
物件納入為 ImageOperator
,讓 TensorOperator
能夠處理基礎 TensorBuffer
來處理 TensorImage
物件。
必要條件:套用圖片時,op
不應變更座標系統。
參數
op | 建立的運算子。 |
---|
公用方法
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 | 都與輸入圖片的寬度相等 |
傳回
- 帶有輸入圖片座標系統座標的點。