Changeset 8232 for trunk/psLib/src/imageops/psImagePixelExtract.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
imageops/psImagePixelExtract.c (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/imageops/psImagePixelExtract.c
r7999 r8232 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 7-28 00:44:05$10 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-08-08 23:32:23 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #include "psError.h" 22 22 23 #include "psErrorText.h" 23 24 24 25 25 #define VECTOR_STORE_ROW_CASE(TYPE) \ … … 34 34 if (input == NULL || input->data.V == NULL) { 35 35 psError(PS_ERR_BAD_PARAMETER_NULL, true, 36 PS_ERRORTEXT_psImage_IMAGE_NULL);36 _("Can not operate on a NULL psImage.")); 37 37 psFree(out); 38 38 return NULL; … … 124 124 if (input == NULL || input->data.V == NULL) { 125 125 psError(PS_ERR_BAD_PARAMETER_NULL, true, 126 PS_ERRORTEXT_psImage_IMAGE_NULL);126 _("Can not operate on a NULL psImage.")); 127 127 psFree(out); 128 128 return NULL; … … 223 223 if (input == NULL || input->data.V == NULL) { 224 224 psError(PS_ERR_BAD_PARAMETER_NULL, true, 225 PS_ERRORTEXT_psImage_IMAGE_NULL);225 _("Can not operate on a NULL psImage.")); 226 226 psFree(out); 227 227 return NULL; … … 350 350 if (inRows != mask->numRows || inCols != mask->numCols) { 351 351 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 352 PS_ERRORTEXT_psImage_IMAGE_MASK_SIZE,352 _("Input psImage mask size, %dx%d, does not match psImage input size, %dx%d."), 353 353 mask->numCols,mask->numRows, 354 354 inCols, inRows); … … 360 360 PS_TYPE_NAME(typeStr,mask->type.type); 361 361 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 362 PS_ERRORTEXT_psImage_IMAGE_MASK_TYPE,362 _("Input psImage mask type, %s, is not the supported mask datatype of %s."), 363 363 typeStr, PS_TYPE_MASK_NAME); 364 364 psFree(out); … … 369 369 if (stats == NULL) { 370 370 psError(PS_ERR_BAD_PARAMETER_NULL, true, 371 PS_ERRORTEXT_psImage_STAT_NULL);371 _("Specified statistic can not be NULL.")); 372 372 psFree(out); 373 373 return NULL; … … 378 378 if (statistic == 0) { 379 379 psError(PS_ERR_BAD_PARAMETER_VALUE, false, 380 PS_ERRORTEXT_psImage_BAD_STAT,stats->options);380 _("Specified statistic option, %d, is not valid. Must specify one and only one statistic type."),stats->options); 381 381 psFree(out); 382 382 return NULL; … … 466 466 PS_TYPE_NAME(typeStr,type); 467 467 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 468 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,468 _("Specified psImage type, %s, is not supported."), 469 469 typeStr); 470 470 psFree(out); … … 531 531 } else { // don't know what the direction flag is 532 532 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 533 PS_ERRORTEXT_psImage_SLICE_DIRECTION_INVALID,533 _("Specified slice direction, %d, is invalid."), 534 534 direction); 535 535 psFree(out); … … 555 555 if (input == NULL || input->data.V == NULL) { 556 556 psError(PS_ERR_BAD_PARAMETER_NULL, true, 557 PS_ERRORTEXT_psImage_IMAGE_NULL);557 _("Can not operate on a NULL psImage.")); 558 558 psFree(out); 559 559 return NULL; … … 588 588 if (nSamples < 2) { 589 589 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 590 PS_ERRORTEXT_psImage_nSamples_TOOSMALL,590 _("Specified number of samples, %d, must be greater than 1 to make a line."), 591 591 nSamples); 592 592 psFree(out); … … 639 639 if (mode < PS_INTERPOLATE_FLAT ) { 640 640 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 641 PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED,641 _("Specified interpolation mode, %d, is unsupported."), 642 642 mode); 643 643 psFree(out); … … 648 648 if (numRows != mask->numRows || numCols != mask->numCols) { 649 649 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 650 PS_ERRORTEXT_psImage_IMAGE_MASK_SIZE,650 _("Input psImage mask size, %dx%d, does not match psImage input size, %dx%d."), 651 651 mask->numCols,mask->numRows, 652 652 numCols-1, numRows); … … 658 658 PS_TYPE_NAME(typeStr,mask->type.type); 659 659 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 660 PS_ERRORTEXT_psImage_IMAGE_MASK_TYPE,660 _("Input psImage mask type, %s, is not the supported mask datatype of %s."), 661 661 typeStr, PS_TYPE_MASK_NAME); 662 662 psFree(out); … … 719 719 PS_TYPE_NAME(typeStr,input->type.type); 720 720 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 721 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,721 _("Specified psImage type, %s, is not supported."), 722 722 typeStr); 723 723 psFree(out); … … 742 742 if (input == NULL || input->data.V == NULL) { 743 743 psError(PS_ERR_BAD_PARAMETER_NULL, true, 744 PS_ERRORTEXT_psImage_IMAGE_NULL);744 _("Can not operate on a NULL psImage.")); 745 745 psFree(out); 746 746 return NULL; … … 752 752 if (numRows != mask->numRows || numCols != mask->numCols) { 753 753 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 754 PS_ERRORTEXT_psImage_IMAGE_MASK_SIZE,754 _("Input psImage mask size, %dx%d, does not match psImage input size, %dx%d."), 755 755 mask->numCols,mask->numRows, 756 756 numCols, numRows); … … 762 762 PS_TYPE_NAME(typeStr,mask->type.type); 763 763 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 764 PS_ERRORTEXT_psImage_IMAGE_MASK_TYPE,764 _("Input psImage mask type, %s, is not the supported mask datatype of %s."), 765 765 typeStr, PS_TYPE_MASK_NAME); 766 766 psFree(out); … … 774 774 y < input->row0 || y >= (input->row0 + numRows) ) { 775 775 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 776 PS_ERRORTEXT_psImage_CENTER_NOT_IN_IMAGE,776 _("Specified center, (%g,%g), is outside of the psImage boundaries, [0:%d,0:%d]."), 777 777 x, y, 778 778 numCols-1, numRows-1); … … 783 783 if (radii == NULL) { 784 784 psError(PS_ERR_BAD_PARAMETER_NULL, true, 785 PS_ERRORTEXT_psImage_RADII_VECTOR_NULL);785 _("Specified radii vector can not be NULL.")); 786 786 psFree(out); 787 787 return NULL; … … 790 790 if (radii->n < 2) { 791 791 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 792 PS_ERRORTEXT_psImage_RADII_VECTOR_TOOSMALL,792 _("Input radii vector size, %d, can not be less than 2."), 793 793 radii->n); 794 794 psFree(out); … … 798 798 if (stats == NULL) { 799 799 psError(PS_ERR_BAD_PARAMETER_NULL, true, 800 PS_ERRORTEXT_psImage_STAT_NULL);800 _("Specified statistic can not be NULL.")); 801 801 psFree(out); 802 802 return NULL; … … 807 807 if (statistic == 0) { 808 808 psError(PS_ERR_BAD_PARAMETER_VALUE, false, 809 PS_ERRORTEXT_psImage_BAD_STAT,809 _("Specified statistic option, %d, is not valid. Must specify one and only one statistic type."), 810 810 stats->options); 811 811 psFree(out);
Note:
See TracChangeset
for help on using the changeset viewer.
