X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Feb 2015 12:49 PM by  anon
how to access read_tiff and read_jpeg
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



Basic Member


Posts:228
Basic Member


--
27 Feb 2015 12:49 PM
    Hello, I currently use an IDL 8.3 license. I need to read in an image in TIFF or JPEG format using IDL. I tried using read_tiff or read_jpeg tasks in IDL. Looking at the IDL reference on exelisvis website, it seems like these procedures should be available with IDL 8.3 license. However, it seems like the corresponding procedures do not exist in my IDL library, because I cannot compile the files: IDL> .compile read_tiff % Error opening file. File: read_tiff IDL> .compile read_jpeg % Error opening file. File: read_jpeg I was wondering where I can access these IDL procedures. Thank you!

    Deleted User



    Basic Member


    Posts:228
    Basic Member


    --
    27 Feb 2015 12:56 PM
    IDL's READ_TIFF and READ_JPEG routines are already compiled in an IDL session. To use them, you just call them using the poper syntax. There is no need to compile them, and they are not available in the form of .pro files to be compiled. The syntax is different for the two routines, because READ_TIFF is a function, while READ_JPEG is a procedure. To call READ_TIFF, you would use syntax like this: image1=read_tiff("C:\Program Files\Exelis\IDL84\examples\data\boulder.tif") To call READ_JPEG, you would use syntax like this: read_jpeg, "C:\Program Files\Exelis\IDL84\examples\data\Clouds.jpg", image2 Regards, Peg Exelis VIS
    You are not authorized to post a reply.