comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to convert RGB image into a binary image ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to convert RGB image into a binary image ? [message #87411] Fri, 31 January 2014 15:22 Go to next message
msbstar is currently offline  msbstar
Messages: 3
Registered: January 2014
Junior Member
Hi everybody,

I need to convert a RGB image into a binary format image. I would be grateful if any one could help me.

With best regards,
Hassan
Re: How to convert RGB image into a binary image ? [message #87412 is a reply to message #87411] Fri, 31 January 2014 15:27 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
msbstar writes:

> I need to convert a RGB image into a binary format image. I would be grateful if any one could help me.

An RGB image *is* a binary format image. What exactly are you trying to
do? What do you imagine a binary format image is?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: How to convert RGB image into a binary image ? [message #87414 is a reply to message #87411] Fri, 31 January 2014 17:58 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
On Friday, January 31, 2014 6:22:07 PM UTC-5, Hassan wrote:
> Hi everybody,
>
>
>
> I need to convert a RGB image into a binary format image. I would be grateful if any one could help me.
>
>
>
> With best regards,
>
> Hassan

I'm guessing that you want to threshold the image's intensity. If, so, then you can use COLOR_CONVERT to transform your RGB image into an HSV image. The V channel is the intensity, to which you can apply a threshold. For instance, if A is your RGB image and THRESHOLD is your threshold value, then

IDL> color_convert, a, b, /rgb_hsv
IDL> intensity = reform(b[2,*,*]) ; V = intensity
IDL> result = intensity gt threshold

All the best,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Using openCV in IDL
Next Topic: pass a struct point which is in another struct,from C to IDL by DLM.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:36:30 PDT 2025

Total time taken to generate the page: 0.00469 seconds