Re: interpolation for a color image?
- From: ImageAnalyst <imageanalyst@xxxxxxxxxxxxxx>
- Date: Sat, 24 May 2008 18:59:08 -0700 (PDT)
On May 24, 12:14 pm, aruzinsky <aruzin...@xxxxxxxxxxxxxxxxxxxx> wrote:
On May 23, 7:40 pm, ImageAnalyst <imageanal...@xxxxxxxxxxxxxx> wrote:----------------------------------------------------------------------------
On May 22, 12:03 pm, AE lover <aelove...@xxxxxxxxx> wrote:
Hi all,
I am considering the case of bilinear interpolation for a color image
(say RGB image), to apply a bilinear interpolation, will we apply the
formular of bilinear interpolation, which we use for a gray image, for
each channel R, G, and B, separately?
If so, why don't we take into account the interaction between three
channels?
Thanks
---------------------------------
I think I've seen where you get color artifacts if you do this in RGB
space, especially at edges (where the color changes abruptly). This
is reduced if you interpolate in a different color space such as HSI
(which takes into account interactions, like you say, because the HSI
bands are weighted sums or formulas of RGB.)http://www.easyrgb.com/index..php?X=MATH
Regards,
ImageAnalyst
You cannot properly interpolate on the H channel. Suppose you have a
red ( H = 0 degrees ) object against a blue ( H = 240 ) background.
Bilinearly interpolating to the middle you get H = 120 so you will get
a lime green border around the object. Not to mention 0 and 359 are
both red so you can get every other color interpolating within a
completely red region.
I have seen odd instances where changing the RGB gamma to 2.2 (or is
it the reciprocal) produces better results, but in most cases it is
better leave gamma alone.
Thomas Richter already said everything important.- Hide quoted text -
- Show quoted text -
But why can't you interpolate in a more intelligent way? You go
around the clock in the direction that is closest, so the average of 0
and 359 would be 359.5 (still a red), and the average of 0 and 240
would be 300 (rather than 120) which is a purple which seems like it
could be a reasonable and acceptable interpolation of red and blue.
.
- Follow-Ups:
- Re: interpolation for a color image?
- From: aruzinsky
- Re: interpolation for a color image?
- References:
- interpolation for a color image?
- From: AE lover
- Re: interpolation for a color image?
- From: ImageAnalyst
- Re: interpolation for a color image?
- From: aruzinsky
- interpolation for a color image?
- Prev by Date: Re: TMS320cx help
- Next by Date: Re: Advise on object detection
- Previous by thread: Re: interpolation for a color image?
- Next by thread: Re: interpolation for a color image?
- Index(es):
Relevant Pages
|
Loading