image-manipulation

Render a section of an image to a Bitmap C# Winforms

I'm working on a Map Editor for an XNA game I'm designing in my free time. The pieces of art used in the map are stored on a single texture and rectangles are stored with coordinates and widths etc. In the winforms application I can add segments by selecting the segment I want from a listbox, which is populated from the array of possib...

rotating bitmaps. In code.

Is there a faster way to rotate a large bitmap by 90 or 270 degrees than simply doing a nested loop with inverted coordinates? The bitmaps are 8bpp and typically 2048*2400*8bpp Currently I do this by simply copying with argument inversion, roughly (pseudo code: for x = 0 to 2048-1 for y = 0 to 2048-1 dest[x][y]=src[y][x]; (In...

What is the best way to create a realistic highlighter in .NET (using GDI+)?

How can i create a realistic highlighter (simulating a real world highlighter pen) in .NET using GDI+? It is meant to be used on a graphics object not on selectable text. Using a transparent brush (with alpha channel) doesn't do the job since everything below the area covered by the brush gets "fuzzy", and i would like the "foreground" ...

Where can I find an unsharp mask for C#?

I have been trying to find a code snippet to do an unsharp mask in C# but cant find one that works or is complete. I found a PHP version but I would like to find one in C# before I go through all the hard work converting this from PHP. I am just a beginner. Can anyone point me in the right direction? ...

Convert GD-Sharp stream to Bitmap

im currently trying out GD-Sharp and wanted to convert the graphic into bitmap without saving it to image file. GD-Sharp method to save to stream is bool GB.Save(Stream outStream); for saving using stream is using(FileStream fs = File.OpenWrite(@"stream1.jpg")) { image.Save((System.IO.Stream)fs); fs.Close(); } since bitmap ...

How to get into image manipulation programming ?

Hello all how can i do simple thing like manipulate image programmatically ? ( with c++ i guess .. ) jpgs/png/gif ..... ...

Replicate Digg's Image-Suggestions from Submitted URL with PHP

So I'm looking for ideas on how to best replicate the functionality seen on digg. Essentially, you submit a URL of your page of interest, digg then crawl's the DOM to find all of the IMG tags (likely only selecting a few that are above a certain height/width) and then creates a thumbnail from them and asks you which you would like to rep...

Image Remapping Algorithm

Hi all, I have been developing (for the last 3 hours) a small project I'm doing in C# to help me choose a home. Specifically, I am putting crime statistics in an overlay on Google maps, to find a nice neighborhood. Here is an example: http://otac0n.com/Demos/prospects.html Now, I manually found the Lat and Lng to match the corners of...

Checking image feature alignment

Hi guys, I have written my own software in C# for performing microscopy imaging. See this screenshot. The images that can be seen there are of the same sample but recorded through physically different detectors. It s crucial for my experiments that these images be exactly aligned. I thought the easiest would be to somehow blend/substr...

Rotate image clockwise or anticlockwise inside a div using javascript

HI, Is there a way by which I can rotate an image inside a div clockwise or anticlockwise. I have a main fixed width div[overflow set to hidden] with images loaded from database. There is a scroll bar for showing the images inside the div. When image is clicked then I need to show the rotating animation either in clockwise or anticlockw...

Resizing Images on Client Side

What is the best and quickest way to resize images on the client side using JavaScript? EDIT: Sorry, I meant the best way to display an image resized on the client side.. ...

What's the best way to "smudge" an image programmatically?

I'm messing around with image manipulation, mostly using Python. I'm not too worried about performance right now, as I'm just doing this for fun. Thus far, I can load bitmaps, merge them (according to some function), and do some REALLY crude analysis (find the brightest/darkest points, that kind of thing). I'd like to be able to take ...

Best Programming Language for Medical Image Processing

I am looking to build a medical solution to be used by surgeons to visualize Dicom images in 3D. Also, the software will allow them to perform some segmentation and manipulation to the images. I will probably use the VTK package www.vtk.org/ to assist with this project. Now, I am wondering whether it is easier and better to do this pr...

Remove white backgrounds from images

Hello, I have some product photos, from which I would like to remove the white background. An example: Is there a nice library or a manual way to do it with Cocoa or C? For which keywords (image processing methods) do I have to search? ...

PHP/GD - Cropping and Resizing Images

I've coded a function that crops an image to a given aspect ratio and finally then resizes it and outputs it as JPG: <?php function Image($image, $crop = null, $size = null) { $image = ImageCreateFromString(file_get_contents($image)); if (is_resource($image) === true) { $x = 0; $y = 0; $width = imagesx($imag...

How can i split an image in to multiple parts ?

Can any body explain me how an image can be (equally and unequally) split in to multiple parts in iPhone OS. It is very helpful to me if you provide sample code. ...

Return Bitmap to Browser dynamically

I am cropping an image, and wish to return it using a ashx handler. The crop code is as follows: public static System.Drawing.Image Crop(string img, int width, int height, int x, int y) { try { System.Drawing.Image image = System.Drawing.Image.FromFile(img); Bitmap bmp = new Bitmap(width, heig...

Save Image Preserving Resolution in C#

I am trying to crop an image. I have found multiple ways to do this, however none are performing how I would like. Once the image is cropped, I am sending it to a PDF generator. If I send the normal jpg, it works fine, however if I crop the image, it does not come through to the PDF in the correct size. I think it might be to do with res...

How to use SIFR or Facelift with ASP.net?

Has anyone used SIFR or Facelift (FLIR) with ASP.net? I noticed that all the scripts included with FLIR are all PHP pages. I looked around but it looks like there isn't a good solution for image replacement for ASP.net. ...

Best Technology for a medical 3D Planning Software

I am looking to build a new Interactive 3D planning software similar to this one http://www.materialise.com/materialise/view/en/131410-SimPlant.html I was looking for some expert advise about the best technologies to use to build the different components of the software (ie: UI, Image processing, visualization, 3D, etc.. ) The softwar...