pyvista.ImageGridSource

pyvista.ImageGridSource#

class ImageGridSource(*args, **kwargs)[ソース]#

Create an image of a grid.

Added in version 0.44.0.

パラメータ:
originsequence[float]

The origin of the grid.

extentsequence[int]

The extent of the whole output image, Default: (0,255,0,255,0,0).

spacingtuple

The pixel spacing.

Create an image of a grid.

>>> import pyvista as pv
>>> source = pv.ImageGridSource(
...     extent=(0, 20, 0, 20, 0, 0),
...     spacing=(1, 1, 1),
... )
>>> source.output.plot(cpos='xy')
../../../_images/pyvista-ImageGridSource-1_00_00.png

メソッド

アトリビュート

ImageGridSource.extent

出力画像全体の範囲を返します.

ImageGridSource.origin

Get the origin of the data.

ImageGridSource.output

出力画像をImageDataとして取得します。

ImageGridSource.spacing

Get the spacing of the grid.