DIC源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
731 B

#pragma once
#ifndef _SUBSET_H_
#define _SUBSET_H_
#include "oc_array.h"
#include "oc_image.h"
#include "oc_point.h"
namespace opencorr
{
class Subset2D
{
public:
Point2D center;
int radius_x, radius_y;
int height, width;
Eigen::MatrixXf eg_mat;
Subset2D(Point2D center, int radius_x, int radius_y);
~Subset2D() = default;
void fill(Image2D* image);
float zeroMeanNorm();
};
class Subset3D
{
public:
Point3D center;
int radius_x, radius_y, radius_z;
int dim_x, dim_y, dim_z;
float*** vol_mat = nullptr;
Subset3D(Point3D center, int radius_x, int radius_y, int radius_z);
~Subset3D();
void fill(Image3D* image);
float zeroMeanNorm();
};
}//namespace opencorr
#endif //_SUBSET_H_