Home Image-Pro General Discussions
Options

Substracting RGB gray level ranges from an image.

Dear colleagues,
After obtaining the RGB histogram of an image, I would like to be able to change the image based on a specific range of RGB gray levels. This procedure will allow me to obtain a new image that ignores/delete/substract specific RGB ranges from image.
Thanks in advance,
Edmond 

Best Answer

  • Options
    Answer ✓
    Hi Edmond,

    You can create a new color image with given RGB values (using File | New) and subtract it from active image using Calc.
    You can also do it in a macro subtracting array of 3 RGB values:

        Public Sub SubtractColor
            'subrtact Red, Green, Blue values from image
            Dim col() As Double={50,100,150}
            ThisApplication.ActiveImage.Op.Sub(col)
        End Sub
    
     

    Regards,

    Yuri
Sign In or Register to comment.