pixel

Removing extra pixels after shrinking to a point and selecting the correct pixel as the cross point with Matlab

link text Based on the link above, I managed to get the cross point but sometimes I get 2 or more results. I have 10 similar images with the cross slightly moved in every frame. Is there a way that I can remove the extra pixels remaining that are very off from the other 9 images by comparing it to the cross point of the 1st image? As th...

[iPhone] Disabling Anti-Aliasing for fonts

Hi, I'm writing a retro type game for the iPhone, and need to render a pixel style font to the screen. However, it looks nice and sharp when I run it in the simulator, but not when I run it on the device. Is there any way that I can disable Anti-Aliasing for fonts? I have already tried this: CGContextRef c = UIGraphicsGetCurrentContext(...

how to get the colors on the screen better then get pixel? (c++)

i made a program that uses the colors of pixels from the screen but getpixel is slow so is there a better way to find the color of pixels. i don't care if i get the full screen or one pixel at a time but the main thing is speed. ...

How come JFrame window size in Java does not produce the size of window specified?

Hi all, I am just messing around trying to make a game right now, but I have had this problem before too. When I specify a specific window size (1024 x 768 for instance) the window produced is just a little larger than what I specified. Very annoying. Is there a reason for this? How do I correct it so the window created is actually t...

Dynamically pixelate an html image element

I'm to take an image on a webpage, and then use javascript (or whatever would be best suited) to dynamically 'pixelate' it (e.g. into 20px squares). Then, as the user scrolls down the page, I need the image to gradually increase in resolution, till it is no longer pixelated. Any ideas how I could go about doing this? I realise I could ...

Pixel shader weird compilation error

hi, I'm experiencing with shaders a bit and I keep getting this weird compilation error that's driving me crazy! the following pixel shader code snippet: DirectionVector = normalize(f3LightPosition[i] - PixelPos); LightVec = PixelNormal - DirectionVector; // Get the light strenght factor ...

Display Individual Pixels in WPF

I have an application that needs to highlight individual pixels on an image. I don't want to edit the image, I just want to temporarily display red dots on top of certain pixels in the image. So far I have been using a Canvas to draw a whole lot of really small rectangles to highlight those pixels, but that has performance issues, and I ...

perl: tk: a way/widget that allows pixel level control over the output

I want something like a canvas, but where i'd be able to manipulate pixels easily in addition to all the provided geometries, that can be drawn on canvas. Is it possible to embed something like GD::Image into a canvas? So then I maybe could make the image transparent and set some pixels in it (GD::Image->setPixel()) positioning it over ...

Java image with double value pixel

Actually I'm working with BufferedImages, that provide me pixel values in int type. Do you know a Java object to represent an image that the pixel value in double or float type? ...

Retrieving a pixel alpha value for a UIImage (MonoTouch)

This question is a duplicate of 1042830, but MonoTouch-specific. Is there a way that's safer than allocating an IntPtr, drawing into it using CGBitmapContext and then reading bytes at the appropriate offset? ...

Internal format for 8 bit BGR texture

I'm trying to figure out how to specify a BGR 8 bit texture. I've tried the following combinations (allowed), but all render with wrong colors: Internal format: RGB; Format: RGB; Data Type: UNSIGNED_BYTE_3_3_2; Internal format: RGB; Format: RGB; Data Type: UNSIGNED_BYTE_2_3_3_REV; I've tried the following combinations, all with the ...

How do I make one pixel change its color in HTML?

Hello, let's say I have some given coordinates x and y for a pixel, how could I make it red (keeping everything else on the page just white) in HTML? Is it possible in HTML? ...

pixel difference

i m a beginner in java programming. i have to submit project of server- client and stuck in pixel comparision .acc to code it accepts buffered image and compares pixel how to store pixel difference in 2nd image itself and return it?? do help with code? ...

Convert long/lat to pixel x/y on a given picure.

I have a city "map" (for example - Moscow). She in accuracy repeats the contours the given city in google maps (that is it is copied from google maps and it is a little processed, but the sense remained the same). Also I have object co-ordinates in a city (in geographic coordinates). Problem: how to convert geographic coordinates to ...

min max coordinate of cells , given cell length in c#

Please see attached picture to better understand my question i have a matrix of cells of [JXI] , cell is square in shape with length "a" my question is .. is there a way to use FOR loop to assign MIN,MAX coordinate to each cell taking origin (0,0) at one corner Thanks i was trying following code but no success int a ; a = 1; f...

Calculate pixels within a polygon

In an assignment for school do we need to do some image recognizing, where we have to find a path for a robot. So far have we been able to find all the polygons in the image, but now we need to generate a pixel map, that be used for an astar algorithm later. We have found a way to do this, show below, but the problem is that is very slo...

Pixelate and divide into parts image with c#

Hi, I want to pixelate image and divide image into parts that pixelated then I would like to take the approximate color of that divided part. Imagine that fans are holding cartons and whole image is giving a shape and color of something ? as in googled image : http://www.fenerbahcemaclari.com/images/tribun_resim.jpg ...

WPF Canvas - Single Pixel Grid

Hi guys, I have a custom WPF Canvas, upon which I would like to show a grid. I do so by overriding the OnRender method on Canvas, and using the DrawingContext drawing functions. IsGridVisible, GridWidth, GridHeight are the number of pixels between each grid line horizontally and vertically respectively. I also use a ScaleTransform on t...

extracting a quadrilateral image to a rectangle

BOUNTY UPDATE Following Denis's link, this is how to use the threeblindmiceandamonkey code: // the destination rect is our 'in' quad int dw = 300, dh = 250; double in[4][4] = {{0,0},{dw,0},{dw,dh},{0,dh}}; // the quad in the source image is our 'out' double out[4][5] = {{171,72},{331,93},{333,188},{177,210}}; double homo[3][6]; c...

How to save esri map as an image file

Hi, I am using Silverlight 3 and I am trying to take a screenshot of esri map. I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and...