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
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
0
Best 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:Regards,Public Sub SubtractColor 'subrtact Red, Green, Blue values from image Dim col() As Double={50,100,150} ThisApplication.ActiveImage.Op.Sub(col) End Sub
Yuri0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions