({{, (RefLink[NetEncoder, paclet:ref/NetEncoder])["Image3D"] 
represents a decoder that converts a rank-4 array of pixel values to a 3D image.}, {, (RefLink[NetEncoder, paclet:ref/NetEncoder])[{"Image3D","param"->val,…}]
represents a decoder with specific parameters for postprocessing.}})

OpenersNotesSection(Spacer1)Details

(RefLink[NetDecoder, paclet:ref/NetDecoder])[…][input] applies the decoder to an input to produce an output.

(RefLink[NetDecoder, paclet:ref/NetDecoder])[…][{(Subscript[input, 1]),(Subscript[input, 2]),…}] applies the decoder to a list of inputs to produce a list of outputs.

The input to the decoder input is a rank-4 array of numeric values that lie between 0 and 1.

A decoder can be attached to an output port of a net by specifying "port"->(RefLink[NetDecoder, paclet:ref/NetDecoder])[…] when constructing the net.

The following parameters are supported:

The parameter "ColorSpace" can take the same values as the (RefLink[ColorSpace, paclet:ref/ColorSpace]) option.

The following settings can be used for "MeanImage" and "VarianceImage":

Pixels are normalized to lie between 0 and 1 before doing subtraction.

(RefLink[NetDecoder, paclet:ref/NetDecoder])[…][data,prop] can be used to calculate a specific property for the input data.

When an "Image3D" decoder is attached to a net, net[data,prop] or net[data,"oport"->prop] can be used to calculate a specific property of the decoded output.

The "Image3D" decoder only supports the bypass property. Setting prop to (RefLink[None, paclet:ref/None]) bypasses decoding and returns the input to the decoder.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create an RGB image decoder:

dec=NetDecoder["Image3D"]

Use it to decode a three-channeled array as an RGB image:

dec[RandomInteger[1,{3,4,4,4}]]

OpenersExampleSection1(Spacer1)Scope  (1)

Create a grayscale 3D image decoder:

dec=NetDecoder[{"Image3D","ColorSpace"->"Grayscale"}]

Use it to decode a single-channel matrix as a grayscale image:

dec[RandomInteger[1,{1,4,4,4}]]

The decoder maps across a batch of examples:

dec[{RandomInteger[1,{1,4,4,4}],RandomInteger[1,{1,4,4,4}]}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[NetDecoder, paclet:ref/NetDecoder])  ▪  (RefLink[Image, paclet:ref/Image])  ▪  (RefLink[ImageData, paclet:ref/ImageData])  ▪  (RefLink[NetChain, paclet:ref/NetChain])  ▪  (RefLink[NetGraph, paclet:ref/NetGraph])}, {Related Net Encoders:  (RefLink[Image, paclet:ref/netencoder/Image])  ▪  (RefLink[Image3D, paclet:ref/netencoder/Image3D])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Neural Networks in the Wolfram Language, paclet:tutorial/NeuralNetworksOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Neural Networks, paclet:guide/NeuralNetworks])}})}})