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

Home » Public Forums » archive » Re: Image proceesing in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Image proceesing in IDL [message #60791] Fri, 13 June 2008 16:59 Go to previous message
enod is currently offline  enod
Messages: 41
Registered: November 2004
Member
On Jun 14, 1:28 am, arun <mailtosa...@gmail.com> wrote:
> Hi,
> I have a tiff image of the dimesion 3000 x 3000 which is actually a
> gray scale image.I want to calculate the amount of soil,water and air
> present in the image.I tried using histogram to apply threshold but
> its not working fine.Can anyone suggest me how to do it.I am an
> invoice so any help would be appreciated.Below is the code which i
> have used.
>
> nPixels = n_elements(rotateImg)
>
soilSubscripts = where(rotateImg ge 24000and rotateImg lt 30000,
~~syntax error?
> nSoilPixels)
>
> percentSoil = float(nSoilPixels) / nPixels
>
> waterSubscripts = where(rotateImg ge 18000 and rotateImg lt 23000,
> nWaterPixels)
>
> percentWater = float(nWaterPixels) / nPixels
>
> PRINT, percentSoil
> PRINT, percentWater
>
> With Regards
> Arun
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: An algorithm puzzle
Next Topic: Following a ridgeline

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

Current Time: Sat Oct 11 07:57:52 PDT 2025

Total time taken to generate the page: 0.88401 seconds