#include <OkanOrto.h>
Public Member Functions | |
void | coreGiveOrtoImage (IplImage *&newImage, uchar **&outputMask, double line[6], int newWidth, int newHeight, bool stereo) |
OkanOrto () | |
~OkanOrto () | |
void | clear () |
void | setImage (IplImage *im, uchar **new_inputMask, const OkanImageParam &new_imageParam, double new_avgHeight, double **dem=NULL) |
void | giveOrtoImage (IplImage *&newImage, uchar **&outputMask, double line[6], bool stereo=false) |
void | giveOrtoImageByPixelSize (IplImage *&newImage, uchar **&outputMask, double line[6], double pixelSizeX, double pixelSizeY, bool stereo=false) |
void | giveOrtoImageByResolution (IplImage *&newImage, uchar **&outputMask, double line[6], int resX, int resY, bool stereo=false) |
Public Attributes | |
vector< IplImage * > | image |
vector< uchar ** > | inputMask |
vector< OkanImageParam > | imageParam |
vector< double ** > | ortoX |
vector< double ** > | ortoY |
double | min [2] |
double | max [2] |
OkanOrto::OkanOrto | ( | ) |
Default constructor. It assigns NULL to pointers.
OkanOrto::~OkanOrto | ( | ) |
Default destructor. It deletes ortoX and ortoY.
void OkanOrto::coreGiveOrtoImage | ( | IplImage *& | newImage, | |
uchar **& | outputMask, | |||
double | line[6], | |||
int | newWidth, | |||
int | newHeight, | |||
bool | stereo | |||
) |
Private method which is used for generating an image from ortophoto data
void OkanOrto::clear | ( | ) |
: addexplanation
void OkanOrto::setImage | ( | IplImage * | im, | |
uchar ** | new_inputMask, | |||
const OkanImageParam & | new_imageParam, | |||
double | new_avgHeight, | |||
double ** | dem = NULL | |||
) |
It is used for setting image. It takes copies of im and inputMask.
im | image which will be copied. It only copies pointer of image | |
new_inputMask | input mask of image. It only copies pointer of mask. If it is NULL that means every pixel will be used at generating ortophoto | |
new_imageParam | parameters of image |
void OkanOrto::giveOrtoImage | ( | IplImage *& | newImage, | |
uchar **& | outputMask, | |||
double | line[6], | |||
bool | stereo = false | |||
) |
It creates a new image by using ortoX, ortoY and image fields. newImage's size will be same as the base image.
newImage | It is used for output. Output image will be saved at this. Size of output will be the same as the base image. It should not be created before calling this function. It will be created in function. | |
outputMask | mask of output. Every invalid pixel will be 0. Others will be more than 0. Actually every pixel will show how many pixels of base image matched to that point | |
line | it is used for creating world file. For creating a world file for output you can use this one. Simply prints every value as a line |
void OkanOrto::giveOrtoImageByPixelSize | ( | IplImage *& | newImage, | |
uchar **& | outputMask, | |||
double | line[6], | |||
double | pixelSizeX, | |||
double | pixelSizeY, | |||
bool | stereo = false | |||
) |
It creates a new image by using ortoX, ortoY and image fields. newImage's size will be calculated according to pixelSize at x and y axises.
newImage | It is used for output. Output image will be saved at this. Size of output will be the same as the base image. It should not be created before calling this function. It will be created in function. | |
outputMask | mask of output. Every invalid pixel will be 0. Others will be more than 0. Actually every pixel will show how many pixels of base image matched to that point | |
line | it is used for creating world file. For creating a world file for output you can use this one. Simply prints every value as a line | |
pixelSizeX | new image's pixelSize in x-axis. | |
pixelSizeY | new image's pixelSize in y-axis. |
void OkanOrto::giveOrtoImageByResolution | ( | IplImage *& | newImage, | |
uchar **& | outputMask, | |||
double | line[6], | |||
int | resX, | |||
int | resY, | |||
bool | stereo = false | |||
) |
It creates a new image by using ortoX, ortoY and image fields. newImage's size will be calculated according to pixelSize at x and y axises.
newImage | It is used for output. Output image will be saved at this. Size of output will be the same as the base image. It should not be created before calling this function. It will be created in function. | |
outputMask | mask of output. Every invalid pixel will be 0. Others will be more than 0. Actually every pixel will show how many pixels of base image matched to that point | |
line | it is used for creating world file. For creating a world file for output you can use this one. Simply prints every value as a line | |
resX | width of new image | |
resY | height of new image |
vector<IplImage*> OkanOrto::image |
Private member which keeps the base image.
vector<uchar**> OkanOrto::inputMask |
Private member which keeps inputMask of the base image.
vector<OkanImageParam> OkanOrto::imageParam |
Private member which keeps image parameters
vector<double**> OkanOrto::ortoX |
Private member which keeps X values of image pixels.
vector<double**> OkanOrto::ortoY |
Private member which keeps Y values of image pixels.
double OkanOrto::min[2] |
Private member which keeps minimum values of image pixels. min[0] is in x-axis. min[1] is in y-axis.
double OkanOrto::max[2] |
Private member which keeps maximum values of image pixels. max[0] is in x-axis. max[1] is in y-axis.