Skip to content

Commit f9ba30b

Browse files
committed
BUG: Add image and mesh type names to wasm pipeline
1 parent 56c1be5 commit f9ba30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wasm/ITKCleaverWasm.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Mesher(itk::wasm::Pipeline & pipeline, std::vector<const TImage *> & inputImages
3131
using MeshType = itk::Mesh<typename ImageType::PixelType, 3>;
3232
using OutputMeshType = itk::wasm::OutputMesh<MeshType>;
3333
OutputMeshType outputTriangleMesh;
34-
pipeline.add_option("-t,--triangle", outputTriangleMesh, "Output triangle mesh");
34+
pipeline.add_option("-t,--triangle", outputTriangleMesh, "Output triangle mesh")->type_name("OUTPUT_MESH");
3535

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

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

8686
ITK_WASM_PRE_PARSE(pipeline);
8787

0 commit comments

Comments
 (0)