Re: TBitmap - how to copy an "object"



"Peter Bauer" <PeterBauer@xxxxxxxx> wrote in message
news:4270c4d2$0$17551$9b622d9e@xxxxxxxxxxxxxxxxxx

> i'm trying to copy an "object" of one color out of a TBitmap,
> the problem i got is that i dont know when a pixel belongs to
> this object when the image contains more then one objects. it's
> also not possible to split the image, cause the objects are not
> seperated well.

I'll take a step back if you'll allow me, and solve one problem
at a time. Am I correct in describing the first problem as finding
a connected, single-colour area?

If you know where to start, you can search outwards in all directions
from the starting pixel, adding neighbouring pixels to your region
if they are still the same colour. It's easy to program as a
recursive algorithm; it's essentially a flood fill. Thinking back,
stack depth was a problem but this was in 1990 or so, still on a 16
bit platform.

Groetjes,
Maarten Wiltink


.



Relevant Pages

  • Re: Precalculated Z - buffer
    ... "black muxing magic" in the pixel shader, ... you have to fall back to the XYZ vertex method. ... You can convert your depth-image to any of the formats above (if they dont ... I think lots of people want z buffer control and could live ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: convolution using a gaussian kernel
    ... I dont cheat.I didnt claim I made a discovery with that code,I was ... Eitan Hirsch wrote: ... I have a gaussian kernel with variance sigma and ... Suppose I want to calculate the new pixel in location ...
    (comp.soft-sys.matlab)
  • Re: Heathrow losing customers due to 1 bag rule
    ... a picture as an SLR sized lens whatever the pixel count ... of the camera. ... too many people are hooked on pixel counts, they dont seem to realise ...
    (rec.travel.europe)
  • Re: TBitmap - how to copy an "object"
    ... into delphi code, i thought abt. ... > If you know where to start, you can search outwards in all directions ... > from the starting pixel, adding neighbouring pixels to your region ...
    (comp.lang.pascal.delphi.misc)