本文整理汇总了Java中org.droidplanner.core.survey.CameraInfo类的典型用法代码示例。如果您正苦于以下问题:Java CameraInfo类的具体用法?Java CameraInfo怎么用?Java CameraInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CameraInfo类属于org.droidplanner.core.survey包,在下文中一共展示了CameraInfo类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCameraDetails
import org.droidplanner.core.survey.CameraInfo; //导入依赖的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: openFile
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public CameraInfo openFile(String file) throws Exception {
if (filesInSdCard.containsKey(file)) {
return readSdCardFile(file);
} else if (filesInAssets.containsKey(file)) {
return readAssetsFile(file);
} else {
throw new FileNotFoundException();
}
}
示例3: readSdCardFile
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
private CameraInfo readSdCardFile(String file) throws Exception {
CameraInfoReader reader = new CameraInfoReader();
InputStream inputStream = new FileInputStream(filesInSdCard.get(file));
reader.openFile(inputStream);
inputStream.close();
return reader.getCameraInfo();
}
示例4: readAssetsFile
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
private CameraInfo readAssetsFile(String file) throws Exception {
CameraInfoReader reader = new CameraInfoReader();
InputStream inputStream = context.getAssets().open(filesInAssets.get(file));
reader.openFile(inputStream);
inputStream.close();
return reader.getCameraInfo();
}
示例5: getCameraInfo
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public static CameraInfo getCameraInfo(CameraDetail camDetail){
if(camDetail == null) return null;
CameraInfo camInfo = new CameraInfo();
camInfo.name = camDetail.getName();
camInfo.sensorWidth = camDetail.getSensorWidth();
camInfo.sensorHeight = camDetail.getSensorHeight();
camInfo.sensorResolution = camDetail.getSensorResolution();
camInfo.focalLength = camDetail.getFocalLength();
camInfo.overlap = camDetail.getOverlap();
camInfo.sidelap = camDetail.getSidelap();
camInfo.isInLandscapeOrientation = camDetail.isInLandscapeOrientation();
return camInfo;
}
示例6: getCameraInfo
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public CameraInfo getCameraInfo() {
return cameraInfo;
}
示例7: getCameraDetail
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public static CameraDetail getCameraDetail(CameraInfo camInfo) {
if(camInfo == null) return null;
return new CameraDetail(camInfo.name, camInfo.sensorWidth,
camInfo.sensorHeight, camInfo.sensorResolution, camInfo.focalLength,
camInfo.overlap, camInfo.sidelap, camInfo.isInLandscapeOrientation);
}
示例8: setCamera
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public void setCamera(CameraInfo cameraInfo) {
survey.setCameraInfo(cameraInfo);
}
示例9: setCameraInfo
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public void setCameraInfo(CameraInfo camera) {
surveyData.setCameraInfo(camera);
}
示例10: getCamera
import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public CameraInfo getCamera() {
return camera;
}