当前位置: 首页>>代码示例>>Java>>正文


Java CameraInfo类代码示例

本文整理汇总了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;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:27,代码来源:DroneApi.java

示例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();
	}
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:10,代码来源:CameraInfoLoader.java

示例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();
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:8,代码来源:CameraInfoLoader.java

示例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();
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:8,代码来源:CameraInfoLoader.java

示例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;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:16,代码来源:ProxyUtils.java

示例6: getCameraInfo

import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public CameraInfo getCameraInfo() {
	return cameraInfo;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:4,代码来源:CameraInfoReader.java

示例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);
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:7,代码来源:ProxyUtils.java

示例8: setCamera

import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public void setCamera(CameraInfo cameraInfo) {
	survey.setCameraInfo(cameraInfo);
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:4,代码来源:StructureScanner.java

示例9: setCameraInfo

import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public void setCameraInfo(CameraInfo camera) {
	surveyData.setCameraInfo(camera);
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:4,代码来源:Survey.java

示例10: getCamera

import org.droidplanner.core.survey.CameraInfo; //导入依赖的package包/类
public CameraInfo getCamera() {
	return camera;
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:4,代码来源:Camera.java


注:本文中的org.droidplanner.core.survey.CameraInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。