代码拉取完成,页面将自动刷新
同步操作将从 ctguhzy/TIFFImageSplitter 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef _GEO_TIFF_IMAGE_HXX_
#define _GEO_TIFF_IMAGE_HXX_
#include <opencv/cv.h>
class GeoTiffImage
{
public:
GeoTiffImage();
~GeoTiffImage();
inline void setWidth(unsigned int width) { _imageWidth = width; }
inline void setHeight(unsigned int height) { _imageHeight = height; }
inline void setTileWidth(unsigned int tileWidth) { _tileWidth = tileWidth; }
inline void setTileHeight(unsigned int tileHeight) { _tileHeight = tileHeight; }
inline void setTileSize(unsigned int tileSize) { _tileSize = tileSize; }
inline void setTiled(bool tiled) { _tiled = tiled; }
inline void setChannels(unsigned int channels) { _channels = channels; }
inline void setDepth(unsigned int depth) { _depth = depth; }
inline unsigned int getWidth() { return _imageWidth; }
inline unsigned int getHeight() { return _imageHeight; }
inline unsigned int getTileWidth() { return _tileWidth; }
inline unsigned int getTileHeight() { return _tileHeight; }
inline unsigned int getTileSize() { return _tileSize; }
inline bool isTiled() { return _tiled; }
inline unsigned int getChannels() { return _channels; }
inline unsigned int getDepth() { return _depth; }
inline unsigned char* getImageData() { return _imageData; }
inline void setGeoScale(const double sx, const double sy, const double sz) { _geoScale[0] = sx; _geoScale[1] = sy; _geoScale[2] = sz; }
inline void setGeoControlPoint(double* controlPoint) { for (int i = 0; i < 6; i++) _geoControlPoint[i] = controlPoint[i]; }
inline void getGeoScale(double &sx, double& sy, double& sz) { sx = _geoScale[0]; sy = _geoScale[1]; sz = _geoScale[2]; }
inline void getGeoGridCoord(double& gx, double& gy, double& gz) { gx = _geoControlPoint[0]; gy = _geoControlPoint[1]; gz = _geoControlPoint[2]; }
inline void getGeoModelCoord(double& gx, double& gy, double& gz) { gx = _geoControlPoint[3]; gy = _geoControlPoint[4]; gz = _geoControlPoint[5]; }
IplImage* convert2IplImage();
void splitImage(const char* imageDirectory);
void refreshDataSpace();
inline void setMinValue(float val) { _minValue = val; }
inline void setMaxValue(float val) { _maxValue = val; }
inline float getMinValue() { return _minValue; }
inline float getMaxValue() { return _maxValue; }
void resizeTo(GeoTiffImage* target, int width, int height);
private:
unsigned int _imageWidth;
unsigned int _imageHeight;
bool _tiled;
unsigned int _tileWidth;
unsigned int _tileHeight;
unsigned int _tileSize;
unsigned int _channels;
unsigned int _depth;
unsigned char* _imageData;
double _geoScale[3];
double _geoControlPoint[6];
float _minValue;
float _maxValue;
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。