image-processing

How to split up images in OpenCV based on Hough lines?

I'm new to OpenCV and image processing in general. I have photos taken with a camera of food labels for a project I'm working on. I was able to use the cvHoughLines2 function to draw red lines over the lines/bars on the photo. What I want to do now is to chop up the image into several smaller images based on the Hough lines - so that e...

Image palette reduction

Hello SO, I am playing with computer graphics programming for the first time. Don't ask me why, but it feels like a good day to convert RGB (24bit) images, to indexed-palette (8bit) images (like GIF). How would one go about picking the optimal palette, for a given image? I just thought of going with k-means, with k=256. Any suggestions, ...

Commands for ImageMagick to create thumbnails

Given an photograph uploaded by a user, what is best approach to creating a number various sized thumbnails Using ImageMagick (or GraphicsMagick)? My guess to the steps: Create a super sample of the image, maintaining original aspect ratio Apply watermark to super sample Create the various sized thumbnails using the watermarked super s...

Integration of Screenshot Effect in MicroSoft Word 2010

I am impressed alot by the new Microsoft Office 2010 New Feature's. So i am thinking of creating a particular effect in my Own Application Which is Based On Image Processing. Can Anyone help me out how to create Integration of Screenshot Effect which is in MS WORD 2010(Screen Clipping & Remove background of Images). I want to create thi...

Given a set of points to define a shape, how can I contract this shape like Photoshop's Selection>Contract

Hi All, I have a set of points to define a shape. These points are in order and essentially are my "selection". I want to be able to contract this selection by an arbitrary amount to get a smaller version of my original shape. In a basic example with a triangle, the points are simply moved along their normal which is defined by the p...

Problems with "normal" blending of two images with alpha

I'm trying to do some blending of images in Java. After succcesfully doing multiply and screen blending, "normal" blending is causing me headaches. I found on Wikipedia that the formula for blending two pixels with alpha is: Co being resulting color, Ca color of top image, Cb color of bottom image and Aa -> alpha of top, Ab -> alpha o...

Generate thumbnails using in C#

Hi, I am generating the thumbnails of various image file, now I want to optimize it using thread or queue. so when I select a folder it generate thumb image one by one like in windows search. I am new to C#, please help me on this. Thanks, Tanmoy ...

What is the fastest way of edge detection?

I am thinking of implement a image processing based solution for industrial problem. The image is consists of a Red rectangle. Inside that I will see a matrix of circles. The requirement is to count the number of circles under following constraints. (Real application : Count the number of bottles in a bottle casing. Any missing bottles?...

Image Color Picking Script

I have a bunch of sports team logos. What I want to do is find the color that is used for the highest percentage of pixels. So, for the patriots logo below, I would pick out the blue or #000f47 (white will not be an acceptable color), as this is used for the highest percentage of pixels. Obviously I can eyeball each image, use the col...

How to use get_serving_url in appengine?

The following is my main.py so far. import cgi import datetime import logging from google.appengine.ext import db from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import images logging.getLogger().setLevel(logging.DEBUG) ...

Tools to be used for Image processing

I'm Developing a CBIR (Content based Image Retrieval System) as part of my BE project. Which of the below mentioned tools will be better to be used for image processing?? 1-> Matlab 2-> Mathematica I'm planning to develop this system using java as a front end of the system. which of above systems will be better. Or should I go for som...

Image Cleanup Libraries

We are building an application that will take in an image from a mobile phone, extract the text and do something with that. Does anyone know of any image clean-up libraries available (open source or not) that can help, specifically to for digital image cleanup and enhancement so we can do something meaningful with the text. This coul...

Implementing Photoshop's "Poster edges" -filter

I'm trying to find out what effects the Photoshop "Poster edges" filter is composed of. It seems it's a combination of edge detection and posterization, but I haven't been able to duplicate it, not even close, with these so I guess I'm missing something. The image below shows the same image before and after the Poster edges filter: I'...

PHP Image Convert

Hi! In my web app users are allowed to upload images as their photos. How can I convert different image extensions to JPG? Input files are JPG, PNG or GIF. ...

Problem with Memory Management in Android image processing with http protocol.

Hi friends, I have a problem with a memory management. I'm downloading some data through mine HTTP client. Next thing I want to display data to the user. The problem is not stable, on some files of the same type it occurs, on some not. Stable thing is, that it is occurring on the same file. Here is LogCat input. Technically I have no...

What could cause a "color index out of range" error for imagecolorsforindex()?

When doing a patch resize to a big bunch of JPG, PNG and GIF files, PHP drops dead quite unexpectedly with the following error message: imagecolorsforindex() [function.imagecolorsforindex]: Color index 226 out of range The relevant code fragment is: protected function preserveTransparency($img, $resized, $ftype) { if (($fty...

maximum image size in CIFilter / CIKernel?

Does anyone know what the limitations are on image size with custom CIFilters? I've created a filter that performs as expected when the images are up to 2 mega pixels but then produce very strange results when the images are larger. I've tested this both in my cocoa app as well as in quartz composer. The filter I've developed is a geomet...

Portrait Age Progression Algorithm

Are there known algorithms or a good approach to aging a person's photo? Assuming you know the position of eyes/nose/mouth/shape of head what techniques exist to age someone's portrait? For the iPhone, there are apps like AgingBooth and AgeMyFace, and I was wondering how they accomplished that. ...

Help editing a picture in python

I have to suppose I'm given a picture, there shouldnt be any user inputs or calls to media.chose file, so given a picture return the average red value of all the Pixels in that Picture (as an int). If the average calculation results in a non-integer value, then truncate the result. For example, if you average the values 10, 6 and 4, the ...

fastest/performance approach to send large managed Bitmap object to unmanaged/native function

Hi to all, I am excited to be a part of the forum :) my first post ! I am posting this so that many can benefit from it. My question: what is the fastest/performance approach to send large managed Bitmap object to unmanaged/native function ? I will be using C++/CLI, (VS 2008, .NET 3.5) for that purpose One Approach: pin_ptr use pin_...