Just test for either attribute number, or RGB differences...

by (Login qb432l)
R

If Pixel A is significantly different in RGB value from Pixel B, then you have an edge. It doesn't really matter which is "foreground" and which is "background", only that the edge be rendered in a neutral shade.

I'm not sure how this code will be applied, however. If it's meant to be applied to many images, rather than a specific image you're familiar with, then it becomes tricky. Also, it depends on whether the colors are relatively uniform, or varied as in a bitmap. All of my antialasing experience has been "hands on". I've never written code to accomplish it automatically.

-Bob

Posted on Jul 15, 2012, 10:35 AM

Respond to this message   

Return to Index


Response TitleAuthor and Date
Re: Just test for either attribute number, or RGB differences... on Jul 15
 The array might be the way to go... on Jul 15
  Can QB64 use the gpu? on Jul 16
   Re: Can QB64 use the gpu? on Jul 16
    Re: Can QB64 use the gpu? on Jul 16
     It disables some of the error checking. on Jul 16
      *Oh ok on Jul 16