Qualifier and Type |
Constant Field |
Description |
---|---|---|
int |
最大检测时间。 |
|
int |
强度信息数据位。 |
|
int |
波长数据位。 |
|
int |
数据数组大小。 |
|
int |
输入模型大小。 |
Constant |
---|
private static final int MAX_DETECT_TIME 最大检测时常,超过时常则返回超时。 Constant Value: 1000 |
Constant |
---|
private static final int RAW_DATA_POS 用于标识高光谱数据的强度信息数据位。 Constant Value: 0 |
Constant |
---|
private static final int WAVE_LENGTH_POS 用于标识高光谱数据的波长信息数据位。 Constant Value: 1 |
Constant |
---|
private static final int DATA_ARRAY_SIZE 高光谱数据所存放的数组个数。 Constant Value: 2 |
Constant |
---|
private static final int MODEL_INPUT_SIZE 光谱模型输入的大小。 Constant Value: 301 |
Constructor Name |
---|
Hyperspectrum(Context context) 使用默认的高光谱配置信息构造对象实例构造对象实例。 |
Qualifier and Type |
Method Name |
---|---|
int |
mapping(List<VisionData> visionData, HyperspectralResult hyperspectralResult,final VisionCallback<HyperspectralResult> hyperspectralCallback) 基于输入的低精度光谱数据进行高精度映射。 |
void |
setConfiguration(HyperspectralConfiguration hyperspectralConfiguration) 设置高光谱配置信息。 |
HyperspectralConfiguration |
获取高光谱配置信息。 |
void |
loadPlugin(ILoadPluginCallback loadPluginCallback) 触发懒加载,下载插件包。 |
Constructor |
---|
public Hyperspectrum(Context context) 使用默认的高光谱配置信息构造对象实例。 |
Name |
Description |
---|---|
context |
应用上下文。 |
Constructor |
---|
public Hyperspectrum(Context context, , HyperspectralConfiguration mVisionConfiguration) 使用输入的高光谱配置信息构造对象实例。 |
Name |
Description |
---|---|
context |
应用上下文。 |
mVisionConfiguration |
高光谱配置信息。 |
Method |
---|
public int mapping(List<VisionData> visionData, HyperspectralResult hyperspectralResult, final VisionCallback<HyperspectralResult> hyperspectralCallback) 基于输入的低精度光谱数据进行高精度映射。 |
Name |
Description |
---|---|
visionData |
输入的高光谱数据。 |
hyperspectralResult |
格式化的运行结果。 |
hyperspectralCallback |
高光谱回调。 |
Type |
Description |
---|---|
int |
高光谱检测结果码。 |
Method |
---|
public void setConfiguration(HyperspectralConfiguration hyperspectralConfiguration) 设置高光谱配置信息。 |
Name |
Description |
---|---|
hyperspectralConfiguration |
高光谱配置信息。 |
Method |
---|
public HyperspectralConfiguration getConfiguration() 获取高光谱配置信息。 |
Type |
Description |
---|---|
HyperspectralConfiguration |
高光谱配置信息。 |
Method |
---|
public void loadPlugin(ILoadPluginCallback loadPluginCallback) 触发懒加载,下载插件包。 |
Name |
Description |
---|---|
loadPluginCallback |
懒加载回调。 |