Building ITK with emscripten

Great!

In this case, you can create an itk/Image with something like:

const dimension = 2
const componentType = itk.IntTypes.UInt8
# possibly also specify the pixelType and numberOfComponents
const imageType = new itk.ImageType(dimension, componentType)
const image = new itk.Image(imageType)
image.size = [width, height]
image.data = new Uint8Array(arrayBuffer)

Then, pass the image to runPipelineBrowser.