Capsim Block Documentation
Read a floating point TIFF image.
| Num | Description | Type | Name | Default Value | |
|---|---|---|---|---|---|
| 0 | File that contains floating point TIFF image | file | fileName | image.tif |
| Num | Type | Name | Initial Value | Description |
|---|---|---|---|---|
| 0 | int | obufs | ||
| 1 | int | haveRead | 0 |
int i,j,k; float x; int n; image_t img; dsp_floatMatrix_Pt tiffImage_P; |
|---|
if( (obufs = NO_OUTPUT_BUFFERS()) < 1 ) {
fprintf(stderr,"rdfptiff: no output buffers\n");
return(2);
}
for(j=0; j |
|---|
while(!haveRead) {
tiffImage_P=IIP_ReadFloatTIFFMatrix(fileName);
if(tiffImage_P == NULL) {
fprintf(stderr,"imgrdfptiff: could not read image\n");
return(3);
}
haveRead=1;
for(j=0; j
|
|---|
return(0);
|
|---|
/* Capsim (r) Text Mode Kernel (TMK) Star Library (Blocks)
Copyright (C) 1989-2002 XCAD Corporation
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
http://capsimtmk.sourceforge.net
XCAD Corporation
Raleigh, North Carolina */
*/
|
|---|
/************************************************************* imgrdfptiff() *************************************************************** Description: Read a floating point TIFF image. Auto fan-out. Programmer: Sasan Ardalan Date: October 14, 1993 */ |
|---|