Questions tagged [pixel]

A pixel is the smallest unit that can be represented or controlled on a display. The word pixel is derived from the phrase "picture element".

4067 questions
1
vote
2 answers

Efficiently tell if one image is entirely comprised of the pixel values of another in OpenCV

I am trying to find an efficient way to see if one image is a subset of another (meaning that each unique pixel in one image is also found in the other.) The repetition or ordering of the pixels do not matter. I am working in Java, so I would like…
CA2C7B
  • 368
  • 1
  • 14
1
vote
1 answer

CSS - Units of measurement and screen resolution: what's reference pixel, anyway?

Hi, there! I was reading the W3C spec about Units of measurement (https://www.w3.org/TR/css-values-3/#reference-pixel) and the fact is that I didn't understand what is a reference pixel. Can you guys explain it to me, or point me to another…
Lucas
  • 115
  • 1
  • 1
  • 5
1
vote
1 answer

How to get the barycentric coordinates of a point in a pixel shader HLSL

I am working on a project for my school and cannot for the life of me figure it out. I need to get the barycentric Coords of a point in a triangle inside of my pixel shader in order to interpolate between the triangle vertex colors and get a final…
1
vote
3 answers

How could we view the small size image as cover image without pixelated

my original image size should be any size like , 160*80 or 280 *160 1300*278 I can view that image on cover photo but it shows like very blury and pixels are elaborated Screenshot of my cover photo.
JoygiveKalai
  • 63
  • 12
1
vote
1 answer

Java, fast image warping according to own function

I am going to warp an image according to the user-defined function in Java. In general, the image is relatively large (JPEG, 30-50 MB). Initially, the image is loaded: BufferedImage img = ImageIO.read("image.jpg"); Suppose [X,Y] to be the resampled…
justik
  • 4,145
  • 6
  • 32
  • 53
1
vote
2 answers

How can I extract all the hex color codes from a given image?

Is there any program or code that would allow me to get the color values for every single pixel of an image? Or a certain image file format that would make it easy to read them all through textpad or something similar
T. Mat
  • 13
  • 1
  • 4
1
vote
1 answer

Issue in getPixel() function, wrong color

I have created an image that represent a car, I colored each component of the car with a different color, for example the hood RGB color is 251,252,252. This image is displayed on the screen through a TileView, I need to implement a function that…
Mattia
  • 1,057
  • 2
  • 17
  • 33
1
vote
1 answer

C# WriteableBitmapEx Pixels Premultiplying Bit-shifting

This is about extracting the RGB from a pixel value. Here is the code snippet: Byte a = (Byte)(myColor >> 24); // Prevent division by zero UInt32 ai = a; if (ai == 0) { ai = 1; } ai…
descf
  • 1,302
  • 1
  • 12
  • 31
1
vote
0 answers

How to get consistent pixel sizes Cordova on all iOS & Android devices

So I am developing an app and the difference in pixel sizes is pretty big. I have an iPhone 7 and a Motorola Moto G5. I have a video 100px width/height element that looks fine on my iPhone, but far too large on my Moto G5. What is the best way to…
D-Marc
  • 2,937
  • 5
  • 20
  • 28
1
vote
0 answers

is the patch-size the area of the patch?

I have a question regarding patch size. Patch size is "measured in pixels." When patch-size is equal to 2, does this number means the width of a patch in pixels (i.e. 2 pixels x 2 pixels) or the area of the patch (i.e.patch occupies 2 pixels)?
shima
  • 31
  • 2
1
vote
1 answer

OpenGL ES single pixel drawing android

So I made an app using lwjgl for the computer and was trying to make it for android however I can't find replacement for the command glVertex3f() which I use for drawing a single pixel which my app needs to do to set the color per pixel. Is there a…
Moocow9m T
  • 45
  • 7
1
vote
1 answer

Best way to send image through ajax

I'm writing a front end javascript application and i need to send an image on the screen which the user has uploaded to a java backend. What is the most efficient way to send it? Should i get the image base64 or should i store the pixels in matrix…
user7813528
1
vote
1 answer

Processing changing screen with noise function

So I am trying to create a randomized "cloudy" background with processing that changes over time. This is done by randomly generating a brightness for a group of pixels. Unfortunately, I can only get it to render one time and then not again. Code…
1
vote
1 answer

Checking for overlap of pixels from two different images

I have a color picture with red and blue colors. I separated the blue and red color signal sand created black and white images from them as such: first image and second image Now, I want to see how if the white spots in the second image overlap on…
nini
  • 79
  • 1
  • 8
1
vote
1 answer

Is there a way to know how many pixels a user moves a scrollview?

Is there a specific way to know how many pixels a user moves a scrollview? I would dynamically resize a textview accordingly. Thanks Fran
Sefran2
  • 3,578
  • 13
  • 71
  • 106
1 2 3
99
100