Questions tagged [subpixel]

Use this tag for questions related to subpixel, where an animation would apply gradually.

Basically concerns animations where it would be applied gradually, giving it a smooth view rather than shifting the animated object in a pixel-to-pixel manner which looks odd for users.

78 questions
0
votes
0 answers

Issue with Image Processing: Circle Enveloping object glitches between sizes and as such error is a bit too high

I have an orange ping pong and I am writing a python program that gives the distance of the orange ping pong ball from the camera. So far it is working decently well, it is able to give the distance of the orange ping pong ball to the camera within…
0
votes
0 answers

Why my ESRGan python code produce checkerboard artifacts?

this is my code of ESRGan and produce me checkerboard artifacts but i dont know why: def preprocess_vgg(x): """Take a HR image [-1, 1], convert to [0, 255], then to input for VGG network""" if isinstance(x, np.ndarray): …
0
votes
1 answer

"ValueError: None values not supported" when calling SubpixelConv2D function

I am trying to utilize the SubpixelConv2D function I am training a GAN and wanted to up sample using subpixel instead of interpolation or convolution transpose due to the artifacts they leave behind. I am using Tensorflow/1.4.0 and Keras/2.2.4 When…
kyle1004
  • 1
  • 2
0
votes
1 answer

Interpolate pixel rectangle that are out of image in OpenCV

I am recently reading the code of cv::getRectSubPix in OpenCV, which involves dealing rectangles out of image. Concretely, I am stuck on function adjustRect that is used to reshape the out-of-bounds rectangular window. According to the code of…
Finley
  • 795
  • 1
  • 8
  • 26
0
votes
0 answers

Sub-pixel positioning with php

I'm writing a graphic app in PHP. I'm using the GD function imagecopy() to combine two images, one smaller than the other. I want to position the smaller image on top of the bigger image in a float point position. Like…
dan
  • 11
  • 3
0
votes
1 answer

Integer and subpixel shift

I wanted to know what integer shift is? And what is the difference between integer and subpixel shifts in the image processing?
S.M
  • 1
  • 3
0
votes
1 answer

redistributing intensities of round particles upon rotation at subpixel level using python

I have a few questions related to moving a particle ( a round particle with gaussian distribution of intensities) by rotation. When I rotate an image , I would like the particle intensity to be redistributed correctly when the particle ends up in a…
0
votes
1 answer

Subpixel antialiasing for arbitrary paths in Cairo

Does Cairo support subpixel antialiasing on arbitrary paths? I'm interested in subpixel antialiasing on text, but the version of Cairo that I am using is compiled without support for any underlying text rendering engine (such as Freetype).…
Litherum
  • 22,564
  • 3
  • 23
  • 27
0
votes
1 answer

Subpixel rasterization on opaque backgrounds

I'm working on a subpixel rasterizer. The output is to be rendered on an opaque bitmap. I've come so far as to correctly render text white-on-black (because i can basically disregard the contents of the bitmap). The problem is the blending. Each…
Shaggi
  • 1,121
  • 1
  • 9
  • 31
0
votes
0 answers

How to deal with sub-pixel jQuery.width() results

I have a ul that is set to display inline-block and list elements that are set to display inline block. The ul is set to have a width of auto so it shrinks if the container does (responsive). The list items are set to be auto width of their content…
David O'Sullivan
  • 2,969
  • 4
  • 21
  • 24
0
votes
1 answer

Set value shows two decimal places

EDIT: reading more about subpixel rendering, I learned that CSS values which result in decimal or partial pixel values are not "browser-friendly". Therefore, values should be set to have decimal places! I am calculating the width of my parent…
didi
  • 287
  • 1
  • 6
  • 16
0
votes
1 answer

Android subpixel rendering

I have a line that should get thinner the longer it gets. The problem is, that you can clearly see a jump when it gets a pixel thinner. Is there a way to do subpixel rendering/antialiasing on Android? canvas.drawRect() takes float values, but it's…
Maria Neumayer
  • 3,337
  • 3
  • 27
  • 44
0
votes
2 answers

How Can I Fix or Work Around SubPixel Handling on iPhone?

Setup: I am developing a PhoneGap/Cordova app for iOS and Android using jQuery Mobile. The app requires a calendar which I am creating myself due to the fact that an exhaustive search of plugins didn't yield any results that satisfied all my…
MikeZ
  • 858
  • 1
  • 7
  • 20
0
votes
1 answer

subpixel library for webcam in linux

Is there any library for working with webcams on linux in subpixel mode ? I need fast frame rate , and I don't have time for compressing to jpeg ( and jpeg is lossy - I need all the information I can get from the sensors ) . I guess that the…
user1328370
  • 401
  • 1
  • 3
  • 6
-1
votes
1 answer

Subpixel accuracy when drawing vector graphics in Qt?

I have written a small test script in Python and PySide6 to test the vector graphics capabilities of Qt, in particular the accuracy when it comes to the exact shapes and positions of the drawn figures. My first test was to draw a disk with a…
HelloGoodbye
  • 3,624
  • 8
  • 42
  • 57