Movatterモバイル変換


[0]ホーム

URL:


Method

VipsImageconvf

Declaration[src]

intvips_convf(VipsImage*in,VipsImage**out,VipsImage*mask,...)

Description[src]

Convolution. This is a low-level operation, seevips_conv() for somethingmore convenient.

Perform a convolution ofin withmask.Each output pixel iscalculated as sigma[i]{pixel[i] * mask[i]} / scale + offset, where scaleand offset are part ofmask.

The convolution is performed with floating-point arithmetic. The output imageis alwaysVIPS_FORMAT_FLOAT unlessin isVIPS_FORMAT_DOUBLE, in which caseout is alsoVIPS_FORMAT_DOUBLE.

See also

vips_conv().

This method is not directly available to language bindings.

Parameters

out

Type: VipsImage

Output image.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
mask

Type: VipsImage

Convolve with this mask.

The data is owned by the caller of the method.
...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.


[8]ページ先頭

©2009-2025 Movatter.jp