Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Hi @StefanOltmann, there's an example here:

https://github.com/libvips/pyvips?tab=readme-ov-file#example

so eg.:

mask = pyvips.Image.new_from_array([
    [-1, -1, -1],
    [-1, 16, -1],
    [-1, -1, -1],
], scale=8)
image = image.conv(mask, precision='integer')

You'll want a slightly different mask, of course.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@StefanOltmann
Comment options

@jcupitt
Comment options

@StefanOltmann
Comment options

Answer selected by StefanOltmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants