Infos about virtual-pixel method tile
Infos about virtual-pixel method tile
I am interested in the virtual-pixel method tile (and perhaps mirror) and I would like to look at algorithms and/or source code. Can anyone help? Thank you very much!
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Infos about virtual-pixel method tile
The virtual pixel methods are used in GetVirtualPixelsFromNexus() in cache.c. The v7 source for that in github is at https://github.com/ImageMagick/ImageMag ... re/cache.c
snibgo's IM pages: im.snibgo.com
Re: Infos about virtual-pixel method tile
Thanks for the link. I am interested how the algo identifies pixel that should be set/changed via a virtual pixel method (VPM). Is it possible to externalize those pixels given the following task: Given are an image I and a grayscale mask M with the same h x w. Task: Change all pixel coordinates in I with a VPM whose corresponding coordinates in M are non-white.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Infos about virtual-pixel method tile
VPMs are about what happens when a program reads an image coordinate that is outside the image boundary. For some VPMs, it will transform the coordinates to be inside the image, and read that pixel.
VPMs don't use a mask.
I don't understand what you want to do.
VPMs don't use a mask.
I don't understand what you want to do.
snibgo's IM pages: im.snibgo.com
Re: Infos about virtual-pixel method tile
Virtual pixels respects the image mask in ImageMagick 7, but not in the ImageMagick 6 series.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Infos about virtual-pixel method tile
Ah, I didn't know that, thanks.magick wrote:Virtual pixels respects the image mask in ImageMagick 7 ...
snibgo's IM pages: im.snibgo.com