Vips.Image.new_matrix (original) (raw)

Vips

API Version: 8.0

Library Version: 8.17

Type

Image

Constructors

memory new new_from_buffer new_from_file new_from_file_RW new_from_file_raw new_from_image new_from_image1 new_from_memory new_from_memory_copy new_from_source new_matrix new_matrix_from_array new_matrixv new_memory new_temp_file analyzeload black csvload csvload_source eye fitsload fitsload_source fractsurf gaussmat gaussnoise gifload gifload_buffer gifload_source grey heifload heifload_buffer heifload_source identity jp2kload jp2kload_buffer jp2kload_source jpegload jpegload_buffer jpegload_source jxlload jxlload_buffer jxlload_source logmat magickload magickload_buffer mask_butterworth mask_butterworth_band mask_butterworth_ring mask_fractal mask_gaussian mask_gaussian_band mask_gaussian_ring mask_ideal mask_ideal_band mask_ideal_ring matload matrixload matrixload_source niftiload niftiload_source openexrload openslideload openslideload_source pdfload pdfload_buffer pdfload_source perlin pngload pngload_buffer pngload_source ppmload ppmload_buffer ppmload_source radload radload_buffer radload_source rawload sdf sines svgload svgload_buffer svgload_source svgload_string system text thumbnail thumbnail_buffer thumbnail_source tiffload tiffload_buffer tiffload_source tonelut vipsload vipsload_source webpload webpload_buffer webpload_source worley xyz zone

Generated by gi-docgen 2025.3

Constructor

VipsImagenew_matrix

Declaration [src]


VipsImage*
vips_image_new_matrix (
  int width,
  int height
)

Description [src]

This convenience function makes an image which is a matrix: a one-bandVIPS_FORMAT_DOUBLE image held in memory.

Use VIPS_IMAGE_ADDR(), or VIPS_MATRIX() to address pixels in the image.

Use vips_image_set_double() to set “scale” and “offset”, if required.

See also

vips_image_new_matrixv().

Parameters

width

Type: int

Image width.

height

Type: int

Image height.

Return value

Type: VipsImage

The new VipsImage, or NULL on error.

The caller of the function takes ownership of the data, and is responsible for freeing it.