Merged pix on Resize

offonoll's picture

This issue is about resizing image. Resizing means also losing pixels in between. Is there any patch that adds the collapsed/merged pixel? I think is useful for before monochrome patch, and after the camera 640x480. if my hand is in between two visible pixels, I become invisible.

Thank you!

PreviewAttachmentSize
Losing pixels.qtz5.88 KB

toneburst's picture
Re: Merged pix on Resize

I think you'd have to write your own Core Image Filter kernel to resample the image, then crop out the bits you don't want. The builtin Resize patch uses bilinear interpolation to resample the image. There's a trick to enable nearest-neighbour sampling (ie no filtering), but this probably wouldn't help in your scenario. Having said that, wouldn't simply adding pixels make the resulting image generally too bright to be useful, though?

a|x

offonoll's picture
Re: Merged pix on Resize

Hi Alex! Thank's for your answer. The image I need to resize is mainly black and a figure of a white person. My other option is to make a bigger blob so the area of the body is bigger and so resize filter can detect. I will try to find CI resize code.

Thank's!