Working on component labeling

This commit is contained in:
James E McClure 2015-07-11 22:24:43 -04:00
parent 3912fbd385
commit 021300c19e
2 changed files with 13 additions and 1 deletions

View File

@ -311,7 +311,7 @@ int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
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");
size_t Nx = ComponentLabel.size(0);

View File

@ -41,6 +41,18 @@ int ComputeBlob( IntArray &blobs, int &nblobs, int &ncubes, IntArray &indicator,
int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
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