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

Home » Public Forums » archive » Reading each image in a tiff stacks keeping string expression
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
Reading each image in a tiff stacks keeping string expression [message #89218] Tue, 05 August 2014 11:08 Go to next message
oatty3931 is currently offline  oatty3931
Messages: 8
Registered: June 2014
Junior Member
Hello all,
I am working on something that requires input of series of images, either individually or as stacks.

;;; Specify the image files to be processed:
filespec= .....

I want to input a multi-page tiff file to be processed here. Simply naming the file:
filespec='stack.tif' only processes the first image in the stack.

I tried:
x=readtiffstack('newstack.tif')
filespec = x[0:149,0:149,*]

But received an error since String expression us required. (String expression= '' ")
Any help on how else to do this?
Thank you in advance
Re: Reading each image in a tiff stacks keeping string expression [message #89220 is a reply to message #89218] Wed, 06 August 2014 01:36 Go to previous message
Klemen is currently offline  Klemen
Messages: 80
Registered: July 2009
Member
Just try to read tiff normally:
x=read_tiff('newstack.tif')

Before you proceede check, how the TIFF file is written:
1) [ncols, nlines, nbands], or
2) [nbands, ncols, nlines]

Klemen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cgLegend thickness
Next Topic: splitting file

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

Current Time: Wed Oct 08 09:11:46 PDT 2025

Total time taken to generate the page: 0.00473 seconds