image

How to determine edges in an image optimally?

I recently was put in front of the problem of cropping and resizing images. I needed to crop the 'main content' of an image for example if i had an image similar to this: the result should be an image with the msn content without the white margins(left& right). I search on the X axis for the first and last color change and on the Y ax...

WPF Button Image only showing in last control

Hello All! I am fairly new to WPF and am probably missing something simple here. If I have 3 controls, only the last control will show the OriginalImage that I specify. Any help would be most appreciated. Thanks Ryan Main Window <Grid> <Grid.RowDefinitions> <RowDefinition Height="200*"/> <RowDefinit...

image set collection using python !

Hello guys, I am trying to do some kind of image collection for some research i am currently working on, what i want to do is to have a quicker way to extract the part of interest from thousands of images in an efficient and fast way, my view of the program is that to open continually images and i select the part of interest( as a rectan...

Draw and paint areas in images

Anyone knows a way to draw areas in a image, based on points, like draw areas in google maps? Dynamically with javascript. Editing: what I will do is put a map image on the page and draw an area on the top of a house, etc... Thanks. ...

jQuery: using Append() with anchor links in WebKit(Chrome/Safari)

Been trying to add an image before the closing of the anchor tag: <body> <a href="http://www.test.com/"&gt;http://www.test.com/&lt;/a&gt; </body> If I use: $("a").append("<img src='testimage.png' /"); No image will appear in WebKit (Chrome, Safari, etc). Firefox and IE works fine. What am I doing wrong? Thanks in advance ...

Manipulating / Resizing / Scaling an image in vb.net

Imagine I have a rectangle say 400px x 300px. Then let’s say I want to load an image in that. All of this is very easy using Sytem.Drawing.DrawImage. But then I want to leave the left hand side as 300px but change the right hand side to 250 px. I can draw the box using 4 DrawLines but I don’t know how to squash the image into the ne...

High speed matrix manipulation in c#?

I'm working on some image manipulation code in c# and need to do some matrix operations (specifically 2D convolution). I have the code written in matlab which uses the conv2 function ... is there a library for C# / .NET that does good high-speed matrix manipulations? I'd be fine if it requires some specific GPU and does the matrix math...

HTML Chrome Audit Specify Image Dimensions

I just started using the chrome developer tools for some basic html websites and I used the audit tool. I had two identical images, one with the height and width attribute, and one without. On the Resources section, both the latency and the download time were identical. However, the Audit showed Specify image dimensions (1) A width an...

iPhone UIImage upload to web service

Hi all, I worked on this for several hours today and I'm pretty close to a solution but clearly need some help from someone who's pulled this off. I'm trying to post an image to a web service from the iPhone. I'll post the code first then explain everything I've tried: NSData *imageData = UIImageJPEGRepresentation(barCodePic, .9); NSS...

C# Image saving from onPaint method

Hi anyone knows how to save an image from the rectangle i created? protected override void OnPaint(PaintEventArgs e) { Bitmap bitmap = new Bitmap(@"Pictures/testing.jpg"); Image img = bitmap; int width = testing.Width / 3; int height = testing.Height / 3; Rectangle destrect = new Rectangle(0...

How can I overlay a watermark on an already resampled image in PHP (using GD) ?

Here's my current code: define('IMG_WIDTH', (isset ($_GET['width'])) ? (int) $_GET['width'] : 99); define('IMG_HEIGHT', (isset ($_GET['height'])) ? (int) $_GET['height'] : 75); $image = imagecreatefromjpeg($_GET['image']); $origWidth = imagesx($image); $origHeight = imagesy($image); $croppedThumb = imagecreatetruecolor(IMG_WI...

I have this broken php upload script

I have this script for uploading a image and content from a form, it works in one project but not the other. I have spent a good few hours trying to debug it, I am hoping someone could point out the issue I might be having. Where there are comments is where I have tried to debug. The first error I got was the "echo invalid file" at the b...

converting base64 String to image in android

Hi, Is there any way that I can convert a base64 String to image in Android. I am receiving this base64 String in a xml from the server connected through socket. Thanks and Regards, Vivek Birdi ...

drag image inside area

i'd like to drag the image "finga" inside a region height of 320. this goes off screen: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; CGPoint location = [touch locationInView:self.view]; if (CGRectContainsPoint(finga.frame, location)){ CGPoint yLoc...

Adding images into source code

Is there a way (or an editor) that allows me to link an image/files/http links from within a source file (*.java for instance), sort of like a rich text document ? This way, while reading the code I can quickly look at the appended image (augmenting the comments), instead of opening the browser etc. ...

Browser Side Photo Editing Library

Hi! Currently I'm searching for a free solution to simple edit some photos at the users browser. Resizing and Cropping would be mandatory. I'm not searching for an online service (for example SUMO or PIXLR which are great), because I want to include the software into a WYSIWYG Editor. JavaScript would be really nice, but it would have ...

Xcode- can someone help regarding how to add pics into coredata

hi i want to add images into my coredata which must be fetched using a table view display..im VERY VERY VERY new to xcode coding..can someone plsss help...ive set up coredata and all other finctionalities are working..just someone tel me from scratch how to do wat i want to do.. ...

byte array of an image in android

i have created a grid view of some images in android sdk (2.1).i need to get the byte array of the image selected and do manipulations(such as to change the LSB).can anyone help with the suggestions or code? thanks in advance ...

How do I remove flickering from image loads in Flash? in Action script 3

Hi, I'm currently working on making a flash program that creates a movie out of a folder of images. There are buttons to control play, pause, stop, forward, reverse and the like. Its going great but when I play the sequence the image flicker from the loading time becomes almost seizure inducing. Each sequence is about 1000 images long...

Java image scaling

I am outputting images to a PDF file using iText. The images always appear larger than they are supposed to. According to the book (iText in Action), this is because iText always displays the images at a resolution of 72 dpi, regardless of what the actual dpi property of the image is. The book suggests using image.getDpiX() to find th...