@@ -1660,6 +1660,8 @@ Import:
1660
1660
1661
1661
```js
1662
1662
import {
1663
+ readImageNode,
1664
+ writeImageNode,
1663
1665
bioRadReadImageNode,
1664
1666
bioRadWriteImageNode,
1665
1667
bmpReadImageNode,
@@ -1709,6 +1711,48 @@ import {
1709
1711
} from " @itk-wasm/image-io"
1710
1712
```
1711
1713
1714
+ #### readImageNode
1715
+
1716
+
1717
+ * Read an image file format and convert it to an itk-wasm Image.*
1718
+
1719
+ ``` ts
1720
+ async function readImageNode(
1721
+ serializedImage : string ,
1722
+ options : ReadImageOptions = {}
1723
+ ) : Promise <Image >
1724
+ ```
1725
+
1726
+ | Parameter | Type | Description |
1727
+ | :-------------- - : | :---------------- - : | :---------------------------------------- |
1728
+ | ` serializedImage ` | * string * | Input image serialized in the file format . |
1729
+
1730
+ ** ` ReadImageOptions ` interface :**
1731
+
1732
+ | Property | Type | Description |
1733
+ | :-------------- - : | :------ - : | :-------------------------------------------------- |
1734
+ | ` informationOnly ` | * boolean * | Only read image metadata -- do not read pixel data . |
1735
+ | ` componentType ` | * typeof IntTypes or typeof FloatTypes * | Component type , from itk - wasm IntTypes , FloatTypes , for the output pixel components . Defaults to the input component type . |
1736
+ | ` pixelType ` | * typeof PixelTypes * | Pixel type , from itk - wasm PixelTypes , for the output pixels . Defaults to the input pixel type . |
1737
+
1738
+ #### writeImageNode
1739
+
1740
+ * Write an itk - wasm Image converted to an image file format *
1741
+
1742
+ ` ` ` ts
1743
+ async function writeImageNode(
1744
+ image: Image,
1745
+ serializedImage: string,
1746
+ options: WriteImageOptions = {}
1747
+ ) : void
1748
+ ` ` `
1749
+
1750
+ | Parameter | Type | Description |
1751
+ | :-------------- - : | :------ : | :------------------------------------------ |
1752
+ | ` image ` | * Image * | Input image |
1753
+ | ` serializedImage ` | * string * | Output image serialized in the file format . |
1754
+
1755
+
1712
1756
#### bioRadReadImageNode
1713
1757
1714
1758
* Read an image file format and convert it to the itk - wasm file format *
0 commit comments