Note: This page has been translated by MathWorks. Please click here

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Estimate displacement field that aligns two 2-D or 3-D images

```
[D,moving_reg]
= imregdemons(moving,fixed)
```

`[___] = imregdemons(moving,fixed,N)`

```
[gpuarrayD,gpuarrayMoving_reg]
= imregdemons(gpuarrayMoving,gpuarrayFixed,N)
```

`[___] = imregdemons(___,Name,Value,...)`

`[`

estimates
the displacement field `D`

,`moving_reg`

]
= imregdemons(`moving`

,`fixed`

)`D`

that aligns the image
to be registered, `moving`

, with the reference
image, `fixed`

. `moving`

and `fixed`

are
2-D or 3-D intensity images.

The displacement vectors at each pixel location map locations
from the `fixed`

image grid to a corresponding
location in the `moving`

image. `moving_reg`

is
a warped version of the `moving`

image that is
warped according to the displacement field `D`

and
resampled using linear interpolation.

`[`

performs
the estimation on a GPU. `gpuarrayD`

,`gpuarrayMoving_reg`

]
= imregdemons(`gpuarrayMoving`

,`gpuarrayFixed`

,`N`

)

`[___] = imregdemons(___,`

registers
the moving image using name-value pairs to control aspects of weight
computation.`Name,Value`

,...)

Was this topic helpful?