Working on component labeling
This commit is contained in:
parent
3912fbd385
commit
021300c19e
@ -311,7 +311,7 @@ int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
|
|||||||
return nblobs;
|
return nblobs;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ComputeLocalPhaseComponent(IntArray &PhaseID, char VALUE, IntArray &ComponentLabel, bool periodic )
|
int ComputeLocalPhaseComponent(IntArray &PhaseID, int VALUE, IntArray &ComponentLabel, bool periodic )
|
||||||
{
|
{
|
||||||
PROFILE_START("ComputeLocalPhaseComponent");
|
PROFILE_START("ComputeLocalPhaseComponent");
|
||||||
size_t Nx = ComponentLabel.size(0);
|
size_t Nx = ComponentLabel.size(0);
|
||||||
|
@ -41,6 +41,18 @@ int ComputeBlob( IntArray &blobs, int &nblobs, int &ncubes, IntArray &indicator,
|
|||||||
int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
|
int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
|
||||||
double vF, double vS, IntArray& LocalBlobID, bool periodic=true );
|
double vF, double vS, IntArray& LocalBlobID, bool periodic=true );
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Compute blob of an arbitrary phase
|
||||||
|
* @details Compute the connected components for Phase(i,j,k)=VALUE
|
||||||
|
* @return the number of connected components of the phase
|
||||||
|
* @param[in] PhaseID
|
||||||
|
* @param[in] VALUE
|
||||||
|
* @param[out] ComponentLabel
|
||||||
|
* @param[in] periodic
|
||||||
|
*/
|
||||||
|
|
||||||
|
int ComputeLocalPhaseComponent(IntArray &PhaseID, int VALUE, IntArray &ComponentLabel,
|
||||||
|
bool periodic )
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Compute the blob
|
* @brief Compute the blob
|
||||||
|
Loading…
Reference in New Issue
Block a user