From 6891d4df9b6262e06771cb1c2a90b99d926ac829 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 15 Jul 2024 22:20:57 -0400 Subject: [PATCH 1/2] fix(OutputImage): dataSize needs components per pixel As a follow-up to f9f2805766ae1da281dc35dc6c1b3405911007f3, we still need the component per pixel when computing the data size. --- include/itkOutputImage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/itkOutputImage.h b/include/itkOutputImage.h index eb34b46c0..50349c108 100644 --- a/include/itkOutputImage.h +++ b/include/itkOutputImage.h @@ -84,7 +84,7 @@ class ITK_TEMPLATE_EXPORT OutputImage const auto dataAddress = reinterpret_cast< size_t >( wasmImage->GetImage()->GetBufferPointer() ); using ConvertPixelTraits = DefaultConvertPixelTraits; - const auto dataSize = wasmImage->GetImage()->GetPixelContainer()->Size() * sizeof(typename ConvertPixelTraits::ComponentType); + const auto dataSize = wasmImage->GetImage()->GetPixelContainer()->Size() * sizeof(typename ConvertPixelTraits::ComponentType) * ConvertPixelTraits::GetNumberOfComponents(); setMemoryStoreOutputArray(0, index, 0, dataAddress, dataSize); const auto directionAddress = reinterpret_cast< size_t >( wasmImage->GetImage()->GetDirection().GetVnlMatrix().begin() ); From 4feee1621b6b5c2116b8d4c2ac59f7b8a6f60d86 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Wed, 17 Jul 2024 15:56:28 -0400 Subject: [PATCH 2/2] feat(itk-wasm-cli): Update default Docker image for 20240717-6891d4df --- packages/core/typescript/itk-wasm/src/cli/default-image-tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js b/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js index f5f59ca01..4a8896ed4 100644 --- a/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js +++ b/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js @@ -1,2 +1,2 @@ -const defaultImageTag = '20240713-c8dabc4b' +const defaultImageTag = '20240717-6891d4df' export default defaultImageTag