fix smooth distance
This commit is contained in:
parent
418ba77751
commit
c9640c46ba
@ -140,7 +140,7 @@ void Minkowski::MeasureObject(){
|
|||||||
* 0 - labels the object
|
* 0 - labels the object
|
||||||
* 1 - labels the rest of the
|
* 1 - labels the rest of the
|
||||||
*/
|
*/
|
||||||
|
DoubleArray smooth_distance(Nx,Ny,Nz);
|
||||||
for (int k=0; k<Nz; k++){
|
for (int k=0; k<Nz; k++){
|
||||||
for (int j=0; j<Ny; j++){
|
for (int j=0; j<Ny; j++){
|
||||||
for (int i=0; i<Nx; i++){
|
for (int i=0; i<Nx; i++){
|
||||||
@ -149,8 +149,9 @@ void Minkowski::MeasureObject(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
CalcDist(distance,id,*Dm);
|
CalcDist(distance,id,*Dm);
|
||||||
Eikonal(distance, id, *Dm, 10, {true, true, true});
|
Mean3D(distance,smooth_distance);
|
||||||
ComputeScalar(distance,0.0);
|
//Eikonal(distance, id, *Dm, 10, {true, true, true});
|
||||||
|
ComputeScalar(smooth_distance,0.0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "common/Communication.h"
|
#include "common/Communication.h"
|
||||||
#include "analysis/analysis.h"
|
#include "analysis/analysis.h"
|
||||||
#include "analysis/distance.h"
|
#include "analysis/distance.h"
|
||||||
|
#include "analysis/filters.h"
|
||||||
|
|
||||||
#include "common/Utilities.h"
|
#include "common/Utilities.h"
|
||||||
#include "common/MPI_Helpers.h"
|
#include "common/MPI_Helpers.h"
|
||||||
|
@ -2,15 +2,11 @@
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "ProfilerApp.h"
|
#include "ProfilerApp.h"
|
||||||
|
|
||||||
void Mean3D( const Array<float> &Input, Array<float> &Output )
|
void Mean3D( const Array<double> &Input, Array<double> &Output )
|
||||||
{
|
{
|
||||||
PROFILE_START("Mean3D");
|
PROFILE_START("Mean3D");
|
||||||
// Perform a 3D Mean filter on Input array
|
// Perform a 3D Mean filter on Input array
|
||||||
int i,j,k,ii,jj,kk;
|
int i,j,k;
|
||||||
int imin,jmin,kmin,imax,jmax,kmax;
|
|
||||||
|
|
||||||
float *List;
|
|
||||||
List=new float[27];
|
|
||||||
|
|
||||||
int Nx = int(Input.size(0));
|
int Nx = int(Input.size(0));
|
||||||
int Ny = int(Input.size(1));
|
int Ny = int(Input.size(1));
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @param[in] Input Input image
|
* @param[in] Input Input image
|
||||||
* @param[out] Output Output image
|
* @param[out] Output Output image
|
||||||
*/
|
*/
|
||||||
void Mean3D( const Array<float> &Input, Array<float> &Output )
|
void Mean3D( const Array<double> &Input, Array<double> &Output );
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Filter image
|
* @brief Filter image
|
||||||
|
Loading…
Reference in New Issue
Block a user