Matrix with b3dMex
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
namespace Recon {
|
||||||
float* b3dMex(float *startPoint, float *endPoint,size_t &outputSize ) {
|
float* b3dMex(float *startPoint, float *endPoint,size_t &outputSize ) {
|
||||||
|
|
||||||
/* Input arguments from MATLAB */
|
/* Input arguments from MATLAB */
|
||||||
@@ -109,6 +110,14 @@ float* b3dMex(float *startPoint, float *endPoint,size_t &outputSize ) {
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Aurora::Matrix b3dMexDouble(const Aurora::Matrix& StartPt, const Aurora::Matrix& endPts)
|
||||||
|
{
|
||||||
|
size_t size = 0;
|
||||||
|
auto temp =
|
||||||
|
Recon::b3dMexDouble(StartPt.getData(), endPts.getData(), size);
|
||||||
|
return Aurora::Matrix::fromRawData(temp, 3, size / 3);
|
||||||
|
}
|
||||||
|
|
||||||
double * b3dMexDouble(double *startPoint,double *endPoint, size_t& outputSize) {
|
double * b3dMexDouble(double *startPoint,double *endPoint, size_t& outputSize) {
|
||||||
|
|
||||||
std::vector<double> points;
|
std::vector<double> points;
|
||||||
@@ -206,3 +215,5 @@ double * b3dMexDouble(double *startPoint,double *endPoint, size_t& outputSize) {
|
|||||||
outputSize = points.size();
|
outputSize = points.size();
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
#ifndef __B3DMEX_H__
|
#ifndef __B3DMEX_H__
|
||||||
#define __B3DMEX_H__
|
#define __B3DMEX_H__
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include "Matrix.h"
|
||||||
namespace Recon {
|
namespace Recon {
|
||||||
float* b3dMex(float *startPoint, float *endPoint,std::size_t &outputSize );
|
float* b3dMex(float *startPoint, float *endPoint,std::size_t &outputSize );
|
||||||
double * b3dMexDouble(double *startPoint,double *endPoint, size_t& outputSize);
|
double * b3dMexDouble(double *startPoint,double *endPoint, size_t& outputSize);
|
||||||
|
Aurora::Matrix b3dMexDouble(const Aurora::Matrix& StartPt, const Aurora::Matrix& endPts);
|
||||||
}
|
}
|
||||||
#endif // __B3DMEX_H__
|
#endif // __B3DMEX_H__
|
||||||
Reference in New Issue
Block a user