本文整理汇总了Java中org.droidplanner.services.android.utils.file.help.CameraInfoLoader类的典型用法代码示例。如果您正苦于以下问题:Java CameraInfoLoader类的具体用法?Java CameraInfoLoader怎么用?Java CameraInfoLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CameraInfoLoader类属于org.droidplanner.services.android.utils.file.help包,在下文中一共展示了CameraInfoLoader类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCameraDetails
import org.droidplanner.services.android.utils.file.help.CameraInfoLoader; //导入依赖的package包/类
private List<CameraDetail> getCameraDetails() {
if(cachedCameraDetails == null) {
final CameraInfoLoader camInfoLoader = this.droneMgr.getCameraInfoLoader();
List<String> cameraInfoNames = camInfoLoader.getCameraInfoList();
List<CameraInfo> cameraInfos = new ArrayList<CameraInfo>(cameraInfoNames.size());
for (String infoName : cameraInfoNames) {
try {
cameraInfos.add(camInfoLoader.openFile(infoName));
} catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
}
}
List<CameraDetail> cameraDetails = new ArrayList<CameraDetail>(cameraInfos.size());
for (CameraInfo camInfo : cameraInfos) {
cameraDetails.add(new CameraDetail(camInfo.name, camInfo.sensorWidth,
camInfo.sensorHeight, camInfo.sensorResolution, camInfo.focalLength,
camInfo.overlap, camInfo.sidelap, camInfo.isInLandscapeOrientation));
}
cachedCameraDetails = cameraDetails;
}
return cachedCameraDetails;
}
示例2: getCameraInfoLoader
import org.droidplanner.services.android.utils.file.help.CameraInfoLoader; //导入依赖的package包/类
public CameraInfoLoader getCameraInfoLoader() {
return cameraInfoLoader;
}