Skip to content

Commit

Permalink
BUG: Add image and mesh type names to wasm pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Mar 10, 2023
1 parent 56c1be5 commit f9ba30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasm/ITKCleaverWasm.cxx
Expand Up @@ -31,7 +31,7 @@ Mesher(itk::wasm::Pipeline & pipeline, std::vector<const TImage *> & inputImages
using MeshType = itk::Mesh<typename ImageType::PixelType, 3>;
using OutputMeshType = itk::wasm::OutputMesh<MeshType>;
OutputMeshType outputTriangleMesh;
pipeline.add_option("-t,--triangle", outputTriangleMesh, "Output triangle mesh");
pipeline.add_option("-t,--triangle", outputTriangleMesh, "Output triangle mesh")->type_name("OUTPUT_MESH");

double sigma = 1.0;
pipeline.add_option("-s,--sigma", sigma, "Blending function sigma for input(s) to remove alias artifacts.");
Expand Down Expand Up @@ -81,7 +81,7 @@ class PipelineFunctor

using InputImageType = itk::wasm::InputImage<ImageType>;
std::vector<InputImageType> inputImages;
pipeline.add_option("-i,--input", inputImages, "Input label image or multiple indicator function images");
pipeline.add_option("-i,--input", inputImages, "Input label image or multiple indicator function images")->type_name("INPUT_IMAGE");

ITK_WASM_PRE_PARSE(pipeline);

Expand Down

0 comments on commit f9ba30b

Please sign in to comment.