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
7
votes
1 answer

find4QuadCornerSubpix vs cornerSubPix

I'm not able to find any kind of information about the find4QuadCornerSubpix() function. I'm trying to understand the differenti between find4QuadCornerSubpix() and cornerSubPix(). Someone can help me? thanks
thewoz
  • 499
  • 2
  • 4
  • 23
7
votes
1 answer

Sub-pixel rendering of fonts on the iPad

Sub-pixel font rendering like ClearType dramatically improves font display resolution and improves screen readability. How would I program sub-pixel rendering of a font (in general), and how can this be achieved on the iPad (C, C++, or Objective-C…
7
votes
1 answer

SGM Disparity subpixel estimation - how to?

Some weeks ago I've implemented a simple block matching stereo algorithm but the results had been bad. So I've searched on the Internet to find better algorithms. There I found the semi global matching (SGM), published by Heiko Hirschmueller. It…
6
votes
2 answers

How can I translate an image with subpixel accuracy?

I have a system that requires moving an image on the screen. I am currently using a png and just placing it at the desired screen coordinates. Because of a combination of the screen resolution and the required frame rate, some frames are identical…
Timulus
  • 334
  • 3
  • 12
6
votes
2 answers

Bad character spacing (kerning) in JavaFX's font rendering (in Linux)

I've started developing an application in JavaFX and I've run in an issue, I could find very little helpful information about: The spacing of between characters in Linux is very uneven. I'm not talking about the width of different characters but of…
Customizer
  • 665
  • 2
  • 7
  • 20
5
votes
1 answer

When do browsers round pixel fractions to full pixels and when do they not?

I remember having read here on SO that pixel fractions should be generally avoided in CSS because browsers tend to round them to full pixels. And indeed, the below example shows how 0.3 pixels are rounded to a full pixel: span { border: 0.3px…
user4385532
5
votes
3 answers

Web-Kit and sub-pixel values, workaround?

I noticed that Web-kit browsers like Chrome and Safari (Windows) tend to round em values to nearest pixel, while Firefox, IE, ? Opera ? can use sub-pixel values. This is normally not a big issue, but when I use em to precisely align letter spacing…
Boris Hamanov
  • 3,085
  • 9
  • 35
  • 58
4
votes
1 answer

SIFT Taylor Expansion working out subpixel locations

I am trying to implement SIFT and am currently just trying to understand how it works before starting to implement it in MATLAB, i understand most of it except how to work out subpixel accuracy using Taylor Expansion: Above is the equation from the…
msp4
  • 41
  • 1
  • 3
4
votes
1 answer

How to make sure the 1px border always show up regardless how much the user zoom in chrome (or any browser)?

I am aware that its a subpixel calculation thing and I read two other SO regarding it (1, 2), however, I wonder if there is an elegant solution for specifically this situation without altering the spec (because I know if I add extra padding around…
ey dee ey em
  • 7,991
  • 14
  • 65
  • 121
4
votes
1 answer

How to make image or video fill entire container when dealing with sub-pixel rendering?

It appears that some browsers, when rendering image or video media that is positioned and sized on the page using percentages, occasionally round the size of the media content (image or video) differently than they round the actual DOM element that…
Jeremy Thomerson
  • 722
  • 2
  • 8
  • 19
4
votes
1 answer

Why does Chrome truncate the decimal width of a 100% width table in a div?

I have a div that has a decimal width (e.g. 250.5px) and a table inside of it with a width 100%. For some reason, Chrome will truncate the decimal portion of the table's width (e.g. from 250.5px to 250px). When the page renders, the div is rounded…
Tim
  • 51
  • 1
  • 6
4
votes
1 answer

Detect center of laser line with sub-pixel accuracy

I am developing a simple 'laser line' scanner using C++ and OpenCV. So far I can detect the center of the laser line with an accuracy of 1 pixel, so I have a starting point for a possible 'sub pixel' function/algorithm. (the laser line is approx.…
nphinity
  • 43
  • 1
  • 4
3
votes
1 answer

How to translate/crop a QImage with subpixel accuracy?

The use case is a 2D map with a vehicle at the origin. The map shall also be translated in case the vehicle moves e.g. 0.5 pixels. I believe this should be feasible using bilinear interpolation or similar. If there is no simple solution using Qt, I…
gebbissimo
  • 2,137
  • 2
  • 25
  • 35
3
votes
2 answers

Will transforms in css cause blurring due to evaluating to half pixels?

Lets say you use this code to vertically center an element .element { position: relative; top: 50%; transform: translateY(-50%); } (this question isn't about aligning things though, so please no suggestions about alignment) Could this cause…
Kevin Wheeler
  • 1,331
  • 2
  • 15
  • 24
3
votes
2 answers

max-width 767px media query - styles only render at 766px or below (only firefox affected)

I've half solved this issue, but without fully understanding the problem, which worries me. I wonder if someone can help me understand what is at play? I have an iframe set to 100% width via CSS. The container div is 767px. And therefore so is the…
Sebastian
  • 61
  • 4