|
I want to test each pixel in an image and check it's color if it is white then I must display the corresponding (x,Y) for that pixel but I didn't find until now a function that help me do something like that. So please if you have such function tell me...
Started by Dani on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Foreach horizontal ....
Using an if condition check and generate a new picture matrix manually in o(n^2) .
If they have different values then it is coloured pixel.
Green and Blue components have equal value, then that pixel is not color.
|
|
So I've been sharing some thoughts on the above topic title on my website about fast, unsafe pixel access. A gentlemen gave me a rough example of how he'd do it in C++, but that doesn't help me in C# unless I can interop it, and the interop is fast as...
Started by David Anderson on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Still sits; private static unsafe Pixel....
Instead of checking each and every pixel, you one byte/pixel at a time, unless someone can whip up a code sample to show me otherwise.
To facilitate this would probably give you an improvement.
|
|
Hello,
I am trying to create an application that when the color of a pixel on screen changes to another one (that I know what it is) it does something, doesn't really matter to the question what it does.
Anyway, I am using this:
CGImageRef window283x4...
Started by MegaEduX on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Frequency of about 50 hertz, if a single pixel is traveling faster than 50 pixels/sec it won't appear on every pixel!
That is also true for the video buffer because all drawings are double buffered in Mac.
|
Ask your Facebook Friends
|
Well I've written a basic lossless jpeg joiner thing in java now but I'd like to compare the files it produces with the original files.
I can only compare so much in a hex editor, does anyone know of an easy way, software or java based (preferably software...
Started by joinJpegs on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
A histogram tool to see if the images are identical... .
You can use e.g.
Now each image pixel's value is the absolute difference of the pixel values in the underlying images.
Decent editors, you can also set the top layer to "difference" mode .
|
|
I used the layout editor in eclipse to mock up my ui layout and then I created the code to populate it dynamically and things are showing up as different sizes. The XML I use to add the star images looks like this:
<ImageView android:src="@drawable...
Started by CaseyB on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The density-independent pixel is equivalent to one physical pixel on a 160 dpi screen.
But I would use dip for things like margin/padding:
Density independent pixel (dip) A virtual pixel unit Pixels - sp .
|
|
I have a 1 pixel tall by 760 pixel wide image that I use as a repeating vertical background image. The right side of this image is filled with a spot color (the remaining left side of the image is white).
The purpose of this background image, in my css...
Started by Scott B on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Something like this could do it:
$token = md5(serialize(array($red, $green, $blue))); if (!file_exists('cachedir/'.$token.'.gif')) { $img = imagecreatefromgif('origfilename.gif'); $color = imagecolorallocate($img, $red, $green, $blue); for ($i = $startPixel... .
|
|
I've always ignored this as probably irrelevant for my purposes but I would like to know what the difference between "Total Pixels" and maximum image size pixels is. For example the new Nikon D4 has 16.6 total megapixels but it has 16.2 megapixels at ...
Started by Alan Melle on
, 12 posts
by 8 people.
Answer Snippets (Read the full thread at naturescapes):
In general, each pixel (photosite) on the sensor maps one to one with a pixel.
In general, each pixel (photosite) on the sensor maps one to one with a pixel in the final image file for a minute.
|
|
I just want to know if the pixel unit is something that doesn't change, and if we can convert from pixels to let's say centimeters ?
Started by Nassif B on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Converting pixels to centimeters pixel density Get screen....
The definition of a pixel will not change, but the size of a pixel will vary on different display devices.
On the size and resolution of the display device in question .
|
|
So yea, fresh start on the board, fresh start with my new "ARTIST NAME!" Me and 8-bit always joked about how I was just known as "some guy" or "that guy" and figured I needed a cool name if I keep selling paintings...And seeing as how an artist with a...
Started by Dead Pixel on
, 20 posts
by 12 people.
Answer Snippets (Read the full thread at pixelgasm-forum):
The mysterious Dead Pixel posted so I could tell them how witty and awesome their handle was.
|
|
Is there a way in the iPhone SDK to calculate the size (in millimeters) of a single pixel?
Answer Snippets (Read the full thread at stackoverflow):
50.8 / 320 (or 76.2 / 480) => the size of 1 pixel is 0.15875 mm x 0.1....
The screen size of a current iPhone or iPod touch 2" x 3" (50.8 mm x 76.2 mm) and the resolution is 320 x 480 pixel.
Well, the size of a pixel is a constant.
|