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

Home » Public Forums » archive » 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
Image proceesing in IDL [message #60807] Fri, 13 June 2008 10:28 Go to previous message
arun is currently offline  arun
Messages: 6
Registered: June 2008
Junior Member
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,
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
Previous Topic: does idl program exist to format fortran programs intelligently?
Next Topic: second y-axis in iplot?

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

Current Time: Fri Oct 10 14:51:24 PDT 2025

Total time taken to generate the page: 0.72017 seconds