image-processing

High Quality Image Magnification on GPU

I'm looking for interesting algorithms for image magnification that can be implemented on a gpu for real-time scaling of video. Linear and bicubic interpolations algorithms are not good enough. Suggestions? Here are some papers I've found, unsure about their suitability for gpu implementation. Adaptive Interpolation Level Set I've s...

Crop different sized rectangle thumbnails into squares without distorting

Our site takes many different sized thumbnails and converts them to squares for sorting. The squares are 135px x 135px. Our current setup: :styles => { :thumbnail => '135x>' } As you can see, this is downsizing the image to 135px height (while keeping the aspect ratio), the foces the width to 135px causing the image to become t...

Engine_Exception with message Method "createThumb" not supported on Amazon EC2

Hi, createThumb() method working with localhost on apache server.But, the same function not working with Amazon EC2. Which is showing an error like, exception 'Engine_Exception' with message 'Method "createThumb" not supported' in /var/www/justrides/application/modules/Core/Api/Abstract.php:46 GD Library enabled in the server. Any sugg...

Floyd–Steinberg dithering alternatives for pixel shader

I know that Floyd–Steinberg dithering algorithm can't be implemented with pixel shader, because that algorithm is strictly sequential. But maybe there exist some higly parallel dithering algorithm which by it's visual output is similar to Floyd-Steinberg algorithm ? So the question is - What are dithering algorithms which are suitable t...

How Can I Iterate an ARGB Bitmap?

Hi to all. I am a bit confused. I have an ARGB bitmap into an unsigned char* array and I just want to iterate the array to check if pixels are black or white. Can anyone post me a sample code for this? To get the array I am using this methods. CGContextRef CreateARGBBitmapContext (CGSize size) { CGColorSpaceRef colorSpace = CGCol...

Confused with CopyFromScreen signiture

I am trying to capture a screenshot using CopyFromScreen. However method signature is a bit confusing for me. It looks like this: public void CopyFromScreen( Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize ) Why there are 3 parameters instead of 2? And why there are both upperLeftCorner. In my unde...

How can I convert an RGB image to grayscale but keep one color?

So I am trying to create an effect similar to Sin City or other movies where they remove all colors except one from an image. I have an RGB image which I want to convert to grayscale but I want to keep one color. This is my picture: I want to keep the red color. The rest should be grayscale. This is what my code outputs so far (yo...

Image upload on product review form in Magento

Hi, I wanna add image uploaded functionality on review Form and want to display with each review. Can anyone pls help me on this? Thanks in advance. ...