statistic.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License.
  5. obtain a copy of the License at
  6. http://www.imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ImageMagick image methods.
  13. }
  14. type
  15. ChannelStatistics = record
  16. depth: Cardinal;
  17. minima, maxima: Quantum;
  18. mean, standard_deviation: double;
  19. scale: Cardinal;
  20. end;
  21. PChannelStatistics = ^ChannelStatistics;
  22. {extern MagickExport ChannelStatistics
  23. *GetImageChannelStatistics(const Image *,ExceptionInfo *);
  24. extern MagickExport MagickBooleanType
  25. GetImageChannelExtrema(const Image *,const ChannelType,unsigned long *,
  26. unsigned long *,ExceptionInfo *),
  27. GetImageExtrema(const Image *,unsigned long *,unsigned long *,
  28. ExceptionInfo *),
  29. GetImageChannelMean(const Image *,const ChannelType,double *,double *,
  30. ExceptionInfo *),
  31. GetImageMean(const Image *,double *,double *,ExceptionInfo *),
  32. SetImageChannelDepth(Image *,const ChannelType,const unsigned long),
  33. SetImageDepth(Image *,const unsigned long);
  34. extern MagickExport RectangleInfo
  35. GetImageBoundingBox(const Image *,ExceptionInfo *exception);
  36. extern MagickExport unsigned long
  37. GetImageChannelDepth(const Image *,const ChannelType,ExceptionInfo *),
  38. GetImageDepth(const Image *,ExceptionInfo *),
  39. GetImageQuantumDepth(const Image *,const MagickBooleanType);}