Skip to content

Commit

Permalink
add gateway method
Browse files Browse the repository at this point in the history
  • Loading branch information
StRigaud committed Nov 25, 2020
1 parent 9c27287 commit 8914e65
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/CLE.h
Expand Up @@ -49,6 +49,8 @@ class CLE
void AddImageAndScalar(Buffer&, Buffer&, float);
void AddImagesWeighted(Buffer&, Buffer&, Buffer&, float, float);
void AddImages(Buffer&, Buffer&, Buffer&);
void DilateSphere(Buffer&, Buffer&);
void ErodeSphere(Buffer&, Buffer&);
void GreaterThanConstant(Buffer&, Buffer&, float);
void SmallerOrEqualConstant(Buffer&, Buffer&, float);
void MaximumZProjection(Buffer&, Buffer&);
Expand Down
16 changes: 16 additions & 0 deletions src/CLE.cpp
Expand Up @@ -50,6 +50,22 @@ void CLE::AddImages(Buffer& src1, Buffer& src2, Buffer& dst)
this->AddImagesWeighted(src1, src2, dst, 1, 1);
}

void CLE::DilateSphere(Buffer& src, Buffer& dst)
{
DilateSphereKernel kernel(this->gpu);
kernel.SetInput(src);
kernel.SetOutput(dst);
kernel.Execute();
}

void CLE::ErodeSphere(Buffer& src, Buffer& dst)
{
ErodeSphereKernel kernel(this->gpu);
kernel.SetInput(src);
kernel.SetOutput(dst);
kernel.Execute();
}

void CLE::GreaterThanConstant(Buffer& src, Buffer& dst, float scalar)
{
GreaterConstantKernel kernel(this->gpu);
Expand Down

0 comments on commit 8914e65

Please sign in to comment.