Patent ID: 7567692

Claim:
A method for detecting content in-vivo, the method comprising: capturing at least one image frame from within a body lumen using an imager; processing the image frame using a processor, wherein the processing includes at least a filtering process, said filtering process comprising at least filtering bubbles pixels or reflections pixels; converting pixels of the image frame to a first and a second three dimensional color space using a processor; using a processor, constructing a first graph based on the first color space, and a second graph based on the second color space; delimiting the first and second graphs to a tissue decision zone and a content decision zone using a processor; using a processor, assigning each pixel in the image of pixels to the first graph, wherein each pixel is determined as being a content pixel, a tissue pixel or a not defined pixel; using a processor, assigning pixels determined as being a not defined pixel to the second graph, wherein each of said not defined pixels is further determined as being a content pixel, a tissue pixel or a not defined pixel; using a processor, deleting pixels determined as being a not defined pixel; and identifying content in the image frame using a processor, said content including any fluid, solid, liquid, gas, particle, feces, rough reduces, fluid bile, or any substance that is not a permanent or stagnant substance within a body lumen.