Magick++  7.0.10
STL.cpp
Go to the documentation of this file.
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright Bob Friesenhahn, 1999, 2002
4 // Copyright Dirk Lemstra 2013-2017
5 //
6 // Implementation of STL classes and functions
7 //
8 
9 #define MAGICKCORE_IMPLEMENTATION 1
10 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1
11 
12 #include <Magick++/Functions.h>
13 #include <Magick++/Image.h>
14 #include <Magick++/STL.h>
15 
16 // Adaptive-blur image with specified blur factor
18  const double sigma_ )
19  : _radius( radius_ ),
20  _sigma( sigma_ )
21 {
22 }
24 {
25  image_.adaptiveBlur( _radius, _sigma );
26 }
27 
28 // Local adaptive threshold image
30  const size_t height_,
31  const ssize_t offset_ )
32  : _width(width_),
33  _height(height_),
34  _offset(offset_)
35 {
36 }
38 {
39  image_.adaptiveThreshold( _width, _height, _offset );
40 }
41 
42 // Add noise to image with specified noise type
43 Magick::addNoiseImage::addNoiseImage(const Magick::NoiseType noiseType_,
44  const double attenuate_)
45  : _noiseType(noiseType_),
46  _attenuate(attenuate_)
47 {
48 }
49 
51 {
52  image_.addNoise(_noiseType,_attenuate);
53 }
54 
55 // Transform image by specified affine (or free transform) matrix.
57  : _affine( affine_ )
58 {
59 }
61 {
62  image_.affineTransform( _affine );
63 }
64 
65 // Annotate image (draw text on image)
66 
67 // Annotate using specified text, and placement location
68 Magick::annotateImage::annotateImage ( const std::string &text_,
69  const Magick::Geometry &geometry_ )
70  : _text( text_ ),
71  _geometry( geometry_ ),
72  _gravity( Magick::NorthWestGravity ),
73  _degrees( 0 )
74 {
75 }
76 // Annotate using specified text, bounding area, and placement gravity
77 Magick::annotateImage::annotateImage ( const std::string &text_,
78  const Magick::Geometry &geometry_,
79  const Magick::GravityType gravity_ )
80  : _text( text_ ),
81  _geometry( geometry_ ),
82  _gravity( gravity_ ),
83  _degrees( 0 )
84 {
85 }
86 // Annotate with text using specified text, bounding area, placement
87 // gravity, and rotation.
88 Magick::annotateImage::annotateImage ( const std::string &text_,
89  const Magick::Geometry &geometry_,
90  const Magick::GravityType gravity_,
91  const double degrees_ )
92  : _text( text_ ),
93  _geometry( geometry_ ),
94  _gravity( gravity_ ),
95  _degrees( degrees_ )
96 {
97 }
98 // Annotate with text (bounding area is entire image) and placement
99 // gravity.
100 Magick::annotateImage::annotateImage ( const std::string &text_,
101  const Magick::GravityType gravity_ )
102  : _text( text_ ),
103  _geometry( ),
104  _gravity( gravity_ ),
105  _degrees( 0 )
106 {
107 }
109 {
110  image_.annotate( _text, _geometry, _gravity, _degrees );
111 }
112 
113 // Blur image with specified blur factor
114 Magick::blurImage::blurImage( const double radius_, const double sigma_ )
115  : _radius( radius_ ),
116  _sigma( sigma_ )
117 {
118 }
120 {
121  image_.blur( _radius, _sigma );
122 }
123 
124 // Border image (add border to image)
126  : _geometry( geometry_ )
127 {
128 }
130 {
131  image_.border( _geometry );
132 }
133 
134 // Extract channel from image
135 Magick::channelImage::channelImage( const Magick::ChannelType channel_ )
136  : _channel( channel_ )
137 {
138 }
140 {
141  image_.channel( _channel );
142 }
143 
144 // Charcoal effect image (looks like charcoal sketch)
145 Magick::charcoalImage::charcoalImage( const double radius_, const double sigma_ )
146  : _radius( radius_ ),
147  _sigma( sigma_ )
148 {
149 }
151 {
152  image_.charcoal( _radius, _sigma );
153 }
154 
155 // Chop image (remove vertical or horizontal subregion of image)
157  : _geometry( geometry_ )
158 {
159 }
161 {
162  image_.chop( _geometry );
163 }
164 
165 // accepts a lightweight Color Correction Collection (CCC) file which solely
166 // contains one or more color corrections and applies the correction to the
167 // image.
168 Magick::cdlImage::cdlImage( const std::string &cdl_ )
169  : _cdl ( cdl_ )
170 {
171 }
172 void Magick::cdlImage::operator()( Image &image_ ) const
173 {
174  image_.cdl( _cdl.c_str() );
175 }
176 
177 // Colorize image using pen color at specified percent alpha
178 Magick::colorizeImage::colorizeImage( const unsigned int alphaRed_,
179  const unsigned int alphaGreen_,
180  const unsigned int alphaBlue_,
181  const Magick::Color &penColor_ )
182  : _alphaRed ( alphaRed_ ),
183  _alphaGreen ( alphaGreen_ ),
184  _alphaBlue ( alphaBlue_ ),
185  _penColor( penColor_ )
186 {
187 }
188 Magick::colorizeImage::colorizeImage( const unsigned int alpha_,
189  const Magick::Color &penColor_ )
190  : _alphaRed ( alpha_ ),
191  _alphaGreen ( alpha_ ),
192  _alphaBlue ( alpha_ ),
193  _penColor( penColor_ )
194 {
195 }
197 {
198  image_.colorize( _alphaRed, _alphaGreen, _alphaBlue, _penColor );
199 }
200 
201 // Apply a color matrix to the image channels. The user supplied
202 // matrix may be of order 1 to 5 (1x1 through 5x5).
204  const double *color_matrix_ )
205  : _order( order_ ),
206  _color_matrix( color_matrix_ )
207 {
208 }
210 {
211  image_.colorMatrix( _order, _color_matrix );
212 }
213 
214 // Convert the image colorspace representation
215 Magick::colorSpaceImage::colorSpaceImage( Magick::ColorspaceType colorSpace_ )
216  : _colorSpace( colorSpace_ )
217 {
218 }
220 {
221  image_.colorSpace( _colorSpace );
222 }
223 
224 // Comment image (add comment string to image)
225 Magick::commentImage::commentImage( const std::string &comment_ )
226  : _comment( comment_ )
227 {
228 }
230 {
231  image_.comment( _comment );
232 }
233 
234 // Compose an image onto another at specified offset and using
235 // specified algorithm
237  ssize_t xOffset_,
238  ssize_t yOffset_,
239  Magick::CompositeOperator compose_ )
240  : _compositeImage( compositeImage_ ),
241  _xOffset ( xOffset_ ),
242  _yOffset ( yOffset_ ),
243  _compose ( compose_ )
244 {
245 }
247  const Magick::Geometry &offset_,
248  Magick::CompositeOperator compose_ )
249  : _compositeImage( compositeImage_ ),
250  _xOffset ( offset_.xOff() ),
251  _yOffset ( offset_.yOff() ),
252  _compose ( compose_ )
253 {
254 }
256 {
257  image_.composite( _compositeImage, _xOffset, _yOffset, _compose );
258 }
259 
260 // Contrast image (enhance intensity differences in image)
261 Magick::contrastImage::contrastImage( const size_t sharpen_ )
262  : _sharpen( sharpen_ )
263 {
264 }
266 {
267  image_.contrast( _sharpen );
268 }
269 
270 // Crop image (subregion of original image)
272  : _geometry( geometry_ )
273 {
274 }
276 {
277  image_.crop( _geometry );
278 }
279 
280 // Cycle image colormap
282  : _amount( amount_ )
283 {
284 }
286 {
287  image_.cycleColormap( _amount );
288 }
289 
290 // Despeckle image (reduce speckle noise)
292 {
293 }
295 {
296  image_.despeckle( );
297 }
298 
299 // Distort image. distorts an image using various distortion methods, by
300 // mapping color lookups of the source image to a new destination image
301 // usally of the same size as the source image, unless 'bestfit' is set to
302 // true.
303 Magick::distortImage::distortImage( const Magick::DistortMethod method_,
304  const size_t number_arguments_,
305  const double *arguments_,
306  const bool bestfit_ )
307  : _method ( method_ ),
308  _number_arguments ( number_arguments_ ),
309  _arguments ( arguments_ ),
310  _bestfit( bestfit_ )
311 {
312 }
313 Magick::distortImage::distortImage( const Magick::DistortMethod method_,
314  const size_t number_arguments_,
315  const double *arguments_ )
316  : _method ( method_ ),
317  _number_arguments ( number_arguments_ ),
318  _arguments ( arguments_ ),
319  _bestfit( false )
320 {
321 }
323 {
324  image_.distort( _method, _number_arguments, _arguments, _bestfit );
325 }
326 
327 // Draw on image
329  : _drawableList()
330 {
331  _drawableList.push_back( drawable_ );
332 }
333 Magick::drawImage::drawImage( const std::vector<Magick::Drawable> &drawable_ )
334  : _drawableList( drawable_ )
335 {
336 }
338 {
339  image_.draw( _drawableList );
340 }
341 
342 // Edge image (hilight edges in image)
343 Magick::edgeImage::edgeImage( const double radius_ )
344  : _radius( radius_ )
345 {
346 }
348 {
349  image_.edge( _radius );
350 }
351 
352 // Emboss image (hilight edges with 3D effect)
354  : _radius( 1 ),
355  _sigma( 0.5 )
356 {
357 }
358 Magick::embossImage::embossImage( const double radius_, const double sigma_ )
359  : _radius( radius_ ),
360  _sigma( sigma_ )
361 {
362 }
364 {
365  image_.emboss( _radius, _sigma );
366 }
367 
368 // Enhance image (minimize noise)
370 {
371 }
373 {
374  image_.enhance( );
375 }
376 
377 // Equalize image (histogram equalization)
379 {
380 }
382 {
383  image_.equalize( );
384 }
385 
386 // Color to use when filling drawn objects
388  : _fillColor( fillColor_ )
389 {
390 }
392 {
393  image_.fillColor( _fillColor );
394 }
395 
396 // Flip image (reflect each scanline in the vertical direction)
398 {
399 }
401 {
402  image_.flip( );
403 }
404 
406  const ssize_t y_,const unsigned int alpha_,const Color &target_,
407  const bool invert_)
408  : _target(target_),
409  _alpha(alpha_),
410  _x(x_),
411  _y(y_),
412  _invert(invert_)
413 {
414 }
415 
417 {
418  image_.floodFillAlpha(_x,_y,_alpha,_target,_invert);
419 }
420 
422  const ssize_t y_,const Magick::Color &fillColor_,const bool invert_)
423  : _x(x_),
424  _y(y_),
425  _fillColor(fillColor_),
426  _borderColor(),
427  _invert(invert_)
428 {
429 }
430 
432  const Magick::Geometry &point_,const Magick::Color &fillColor_,
433  const bool invert_)
434  : _x(point_.xOff()),
435  _y(point_.yOff()),
436  _fillColor(fillColor_),
437  _borderColor(),
438  _invert(invert_)
439 {
440 }
441 
443  const ssize_t y_,const Magick::Color &fillColor_,
444  const Magick::Color &borderColor_,const bool invert_)
445  : _x(x_),
446  _y(y_),
447  _fillColor(fillColor_),
448  _borderColor(borderColor_),
449  _invert(invert_)
450 {
451 }
452 
454  const Color &fillColor_,const Color &borderColor_,const bool invert_)
455  : _x(point_.xOff()),
456  _y(point_.yOff()),
457  _fillColor(fillColor_),
458  _borderColor(borderColor_),
459  _invert(invert_)
460 {
461 }
463 {
464  if (_borderColor.isValid())
465  image_.floodFillColor(_x,_y,_fillColor,_borderColor,_invert);
466  else
467  image_.floodFillColor(_x,_y,_fillColor,_invert);
468 }
469 
471  const ssize_t y_,const Magick::Image &texture_,const bool invert_)
472  : _x(x_),
473  _y(y_),
474  _texture(texture_),
475  _borderColor(),
476  _invert(invert_)
477 {
478 }
479 
481  const Magick::Geometry &point_,const Magick::Image &texture_,
482  const bool invert_)
483  : _x(point_.xOff()),
484  _y(point_.yOff()),
485  _texture(texture_),
486  _borderColor(),
487  _invert(invert_)
488 {
489 }
490 
492  const ssize_t y_,const Magick::Image &texture_,
493  const Magick::Color &borderColor_,const bool invert_)
494  : _x(x_),
495  _y(y_),
496  _texture(texture_),
497  _borderColor(borderColor_),
498  _invert(invert_)
499 {
500 }
501 
503  const Magick::Geometry &point_,const Magick::Image &texture_,
504  const Magick::Color &borderColor_,const bool invert_)
505  : _x(point_.xOff()),
506  _y(point_.yOff()),
507  _texture(texture_),
508  _borderColor(borderColor_),
509  _invert(invert_)
510 {
511 }
512 
514 {
515  if (_borderColor.isValid())
516  image_.floodFillTexture(_x,_y,_texture,_borderColor,_invert);
517  else
518  image_.floodFillTexture(_x,_y,_texture,_invert);
519 }
520 
521 // Flop image (reflect each scanline in the horizontal direction)
523 {
524 }
526 {
527  image_.flop( );
528 }
529 
530 // Frame image
532  : _width( geometry_.width() ),
533  _height( geometry_.height() ),
534  _outerBevel( geometry_.xOff() ),
535  _innerBevel( geometry_.yOff() )
536 {
537 }
538 Magick::frameImage::frameImage( const size_t width_, const size_t height_,
539  const ssize_t innerBevel_, const ssize_t outerBevel_ )
540  : _width( width_ ),
541  _height( height_ ),
542  _outerBevel( outerBevel_ ),
543  _innerBevel( innerBevel_ )
544 {
545 }
547 {
548  image_.frame( _width, _height, _innerBevel, _outerBevel );
549 }
550 
551 // Gamma correct image
552 Magick::gammaImage::gammaImage( const double gamma_ )
553  : _gammaRed( gamma_ ),
554  _gammaGreen( gamma_ ),
555  _gammaBlue( gamma_ )
556 {
557 }
558 Magick::gammaImage::gammaImage ( const double gammaRed_,
559  const double gammaGreen_,
560  const double gammaBlue_ )
561  : _gammaRed( gammaRed_ ),
562  _gammaGreen( gammaGreen_ ),
563  _gammaBlue( gammaBlue_ )
564 {
565 }
567 {
568  image_.gamma( _gammaRed, _gammaGreen, _gammaBlue );
569 }
570 
571 // Gaussian blur image
572 // The number of neighbor pixels to be included in the convolution
573 // mask is specified by 'width_'. The standard deviation of the
574 // gaussian bell curve is specified by 'sigma_'.
576  const double sigma_ )
577  : _width( width_ ),
578  _sigma( sigma_ )
579 {
580 }
582 {
583  image_.gaussianBlur( _width, _sigma );
584 }
585 
586 // Apply a color lookup table (Hald CLUT) to the image.
588  : _haldClutImage ( haldClutImage_ )
589 {
590 }
592 {
593  image_.haldClut( _haldClutImage );
594 }
595 
596 // Implode image (special effect)
597 Magick::implodeImage::implodeImage( const double factor_ )
598  : _factor( factor_ )
599 {
600 }
602 {
603  image_.implode( _factor );
604 }
605 
606 // Implements the inverse discrete Fourier transform (IFT) of the image
607 // either as a magnitude / phase or real / imaginary image pair.
609  : _phaseImage( phaseImage_ )
610 {
611 }
613 {
614  image_.inverseFourierTransform( _phaseImage );
615 }
616 
617 // Set image validity. Valid images become empty (inValid) if argument
618 // is false.
620  : _isValid( isValid_ )
621 {
622 }
624 {
625  image_.isValid( _isValid );
626 }
627 
628 // Label image
629 Magick::labelImage::labelImage( const std::string &label_ )
630  : _label( label_ )
631 {
632 }
634 {
635  image_.label( _label );
636 }
637 
638 // Level image
639 Magick::levelImage::levelImage( const double black_point,
640  const double white_point,
641  const double mid_point )
642  : _black_point(black_point),
643  _white_point(white_point),
644  _mid_point(mid_point)
645 {
646 }
648 {
649  image_.level( _black_point, _white_point, _mid_point );
650 }
651 
652 // Magnify image by integral size
654 {
655 }
657 {
658  image_.magnify( );
659 }
660 
661 // Remap image colors with closest color from reference image
663  const bool dither_ )
664  : _mapImage( mapImage_ ),
665  _dither( dither_ )
666 {
667 }
669 {
670  image_.map( _mapImage, _dither );
671 }
672 
673 // Filter image by replacing each pixel component with the median
674 // color in a circular neighborhood
676  : _radius( radius_ )
677 {
678 }
680 {
681  image_.medianFilter( _radius );
682 }
683 
684 // Reduce image by integral size
686 {
687 }
689 {
690  image_.minify( );
691 }
692 
693 // Modulate percent hue, saturation, and brightness of an image
694 Magick::modulateImage::modulateImage( const double brightness_,
695  const double saturation_,
696  const double hue_ )
697  : _brightness( brightness_ ),
698  _saturation( saturation_ ),
699  _hue( hue_ )
700 {
701 }
703 {
704  image_.modulate( _brightness, _saturation, _hue );
705 }
706 
707 // Negate colors in image. Set grayscale to only negate grayscale
708 // values in image.
709 Magick::negateImage::negateImage( const bool grayscale_ )
710  : _grayscale( grayscale_ )
711 {
712 }
714 {
715  image_.negate( _grayscale );
716 }
717 
718 // Normalize image (increase contrast by normalizing the pixel values
719 // to span the full range of color values)
721 {
722 }
724 {
725  image_.normalize( );
726 }
727 
728 // Oilpaint image (image looks like oil painting)
730  : _radius( radius_ )
731 {
732 }
734 {
735  image_.oilPaint( _radius );
736 }
737 
738 // Set or attenuate the image alpha channel. If the image pixels are
739 // opaque then they are set to the specified alpha value, otherwise
740 // they are blended with the supplied alpha value. The value of
741 // alpha_ ranges from 0 (completely opaque) to QuantumRange. The defines
742 // OpaqueAlpha and TransparentAlpha are available to specify
743 // completely opaque or completely transparent, respectively.
744 Magick::alphaImage::alphaImage( const unsigned int alpha_ )
745  : _alpha( alpha_ )
746 {
747 }
749 {
750  image_.alpha( _alpha );
751 }
752 
753 // Change color of opaque pixel to specified pen color.
755  const Magick::Color &penColor_ )
756  : _opaqueColor( opaqueColor_ ),
757  _penColor( penColor_ )
758 {
759 }
761 {
762  image_.opaque( _opaqueColor, _penColor );
763 }
764 
765 // Quantize image (reduce number of colors)
766 Magick::quantizeImage::quantizeImage( const bool measureError_ )
767  : _measureError( measureError_ )
768 {
769 }
771 {
772  image_.quantize( _measureError );
773 }
774 
775 // Raise image (lighten or darken the edges of an image to give a 3-D
776 // raised or lowered effect)
778  const bool raisedFlag_ )
779  : _geometry( geometry_ ),
780  _raisedFlag( raisedFlag_ )
781 {
782 }
784 {
785  image_.raise( _geometry, _raisedFlag );
786 }
787 
789  : _imageInfo(static_cast<ImageInfo*>(AcquireMagickMemory(
790  sizeof(ImageInfo)))),
791  _quiet(false)
792 {
793  GetImageInfo(_imageInfo);
794 }
795 
797  : _imageInfo(CloneImageInfo(options_._imageInfo)),
798  _quiet(false)
799 {
800 }
801 
803 {
804  _imageInfo=DestroyImageInfo(_imageInfo);
805 }
806 
808 {
809  if (!density_.isValid())
810  _imageInfo->density=(char *) RelinquishMagickMemory(_imageInfo->density);
811  else
812  Magick::CloneString(&_imageInfo->density,density_);
813 }
814 
816 {
817  if (_imageInfo->density)
818  return(Geometry(_imageInfo->density));
819 
820  return(Geometry());
821 }
822 
823 void Magick::ReadOptions::depth(size_t depth_)
824 {
825  _imageInfo->depth=depth_;
826 }
827 
828 size_t Magick::ReadOptions::depth(void) const
829 {
830  return(_imageInfo->depth);
831 }
832 
833 void Magick::ReadOptions::ping(const bool flag_)
834 {
835  _imageInfo->ping=(MagickBooleanType) flag_;
836 }
837 
839 {
840  return(static_cast<bool>(_imageInfo->ping));
841 }
842 
843 void Magick::ReadOptions::quiet(const bool quiet_)
844 {
845  _quiet=quiet_;
846 }
847 
849 {
850  return(_quiet);
851 }
852 
853 void Magick::ReadOptions::size(const Geometry &geometry_)
854 {
855  _imageInfo->size=(char *) RelinquishMagickMemory(_imageInfo->size);
856 
857  if ( geometry_.isValid() )
858  Magick::CloneString(&_imageInfo->size,geometry_);
859 }
860 
862 {
863  if (_imageInfo->size)
864  return(Geometry(_imageInfo->size));
865 
866  return(Geometry());
867 }
868 
869 MagickCore::ImageInfo *Magick::ReadOptions::imageInfo(void)
870 {
871  return(_imageInfo);
872 }
873 
874 // Reduce noise in image using a noise peak elimination filter
876  : _order(3)
877 {
878 }
880  : _order(order_)
881 {
882 }
884 {
885  image_.reduceNoise( _order );
886 }
887 
888 // Roll image (rolls image vertically and horizontally) by specified
889 // number of columnms and rows)
891  : _columns( roll_.width() ),
892  _rows( roll_.height() )
893 {
894 }
895 Magick::rollImage::rollImage( const ssize_t columns_,
896  const ssize_t rows_ )
897  : _columns( columns_ ),
898  _rows( rows_ )
899 {
900 }
902 {
903  image_.roll( _columns, _rows );
904 }
905 
906 // Rotate image counter-clockwise by specified number of degrees.
907 Magick::rotateImage::rotateImage( const double degrees_ )
908  : _degrees( degrees_ )
909 {
910 }
912 {
913  image_.rotate( _degrees );
914 }
915 
916 // Resize image by using pixel sampling algorithm
918  : _geometry( geometry_ )
919 {
920 }
922 {
923  image_.sample( _geometry );
924 }
925 
926 // Resize image by using simple ratio algorithm
928  : _geometry( geometry_ )
929 {
930 }
932 {
933  image_.scale( _geometry );
934 }
935 
936 // Segment (coalesce similar image components) by analyzing the
937 // histograms of the color components and identifying units that are
938 // homogeneous with the fuzzy c-means technique. Also uses
939 // QuantizeColorSpace and Verbose image attributes
940 Magick::segmentImage::segmentImage( const double clusterThreshold_ ,
941  const double smoothingThreshold_ )
942  : _clusterThreshold( clusterThreshold_ ),
943  _smoothingThreshold( smoothingThreshold_ )
944 {
945 }
947 {
948  image_.segment( _clusterThreshold, _smoothingThreshold );
949 }
950 
951 // Shade image using distant light source
952 Magick::shadeImage::shadeImage( const double azimuth_,
953  const double elevation_,
954  const bool colorShading_)
955  : _azimuth( azimuth_ ),
956  _elevation( elevation_ ),
957  _colorShading (colorShading_)
958 {
959 }
961 {
962  image_.shade( _azimuth, _elevation, _colorShading );
963 }
964 
965 // Simulate an image shadow
966 Magick::shadowImage::shadowImage( const double percent_opacity_,
967  const double sigma_,
968  const ssize_t x_, const ssize_t y_ )
969  : _percent_opacity( percent_opacity_ ),
970  _sigma( sigma_ ),
971  _x ( x_ ),
972  _y ( y_ )
973 {
974 }
976 {
977  image_.shadow( _percent_opacity, _sigma, _x, _y );
978 }
979 
980 // Sharpen pixels in image
981 Magick::sharpenImage::sharpenImage( const double radius_, const double sigma_ )
982  : _radius( radius_ ),
983  _sigma( sigma_ )
984 {
985 }
987 {
988  image_.sharpen( _radius, _sigma );
989 }
990 
991 // Shave pixels from image edges.
993  : _geometry( geometry_ )
994 {
995 }
997 {
998  image_.shave( _geometry );
999 }
1000 
1001 // Shear image (create parallelogram by sliding image by X or Y axis)
1002 Magick::shearImage::shearImage( const double xShearAngle_,
1003  const double yShearAngle_ )
1004  : _xShearAngle( xShearAngle_ ),
1005  _yShearAngle( yShearAngle_ )
1006 {
1007 }
1009 {
1010  image_.shear( _xShearAngle, _yShearAngle );
1011 }
1012 
1013 // Solarize image (similar to effect seen when exposing a photographic
1014 // film to light during the development process)
1016  : _factor( factor_ )
1017 {
1018 }
1020 {
1021  image_.solarize( _factor );
1022 }
1023 
1024 // Spread pixels randomly within image by specified ammount
1025 Magick::spreadImage::spreadImage( const size_t amount_ )
1026  : _amount( amount_ )
1027 {
1028 }
1030 {
1031  image_.spread( _amount );
1032 }
1033 
1034 // Add a digital watermark to the image (based on second image)
1036  : _waterMark( waterMark_ )
1037 {
1038 }
1040 {
1041  image_.stegano( _waterMark );
1042 }
1043 
1044 // Create an image which appears in stereo when viewed with red-blue
1045 // glasses (Red image on left, blue on right)
1047  : _rightImage( rightImage_ )
1048 {
1049 }
1051 {
1052  image_.stereo( _rightImage );
1053 }
1054 
1055 // Color to use when drawing object outlines
1057  : _strokeColor( strokeColor_ )
1058 {
1059 }
1061 {
1062  image_.strokeColor( _strokeColor );
1063 }
1064 
1065 // Swirl image (image pixels are rotated by degrees)
1066 Magick::swirlImage::swirlImage( const double degrees_ )
1067  : _degrees( degrees_ )
1068 {
1069 }
1071 {
1072  image_.swirl( _degrees );
1073 }
1074 
1075 // Channel a texture on image background
1077  : _texture( texture_ )
1078 {
1079 }
1081 {
1082  image_.texture( _texture );
1083 }
1084 
1085 // Threshold image
1086 Magick::thresholdImage::thresholdImage( const double threshold_ )
1087  : _threshold( threshold_ )
1088 {
1089 }
1091 {
1092  image_.threshold( _threshold );
1093 }
1094 
1095 // Set image color to transparent
1097  : _color( color_ )
1098 {
1099 }
1101 {
1102  image_.transparent( _color );
1103 }
1104 
1105 // Trim edges that are the background color from the image
1107 {
1108 }
1110 {
1111  image_.trim( );
1112 }
1113 
1114 // Map image pixels to a sine wave
1115 Magick::waveImage::waveImage( const double amplitude_,
1116  const double wavelength_ )
1117  : _amplitude( amplitude_ ),
1118  _wavelength( wavelength_ )
1119 {
1120 }
1122 {
1123  image_.wave( _amplitude, _wavelength );
1124 }
1125 
1126 // resize image to specified size.
1128  : _geometry( geometry_ )
1129 {
1130 }
1132 {
1133  image_.resize( _geometry );
1134 }
1135 
1136 // Zoom image to specified size.
1138  : _geometry( geometry_ )
1139 {
1140 }
1142 {
1143  image_.zoom( _geometry );
1144 }
1145 
1146 //
1147 // Function object image attribute accessors
1148 //
1149 
1150 // Join images into a single multi-image file
1152  : _flag( flag_ )
1153 {
1154 }
1156 {
1157  image_.adjoin( _flag );
1158 }
1159 
1160 // Time in 1/100ths of a second which must expire before displaying
1161 // the next image in an animated sequence.
1163  : _delay( delay_ )
1164 {
1165 }
1167 {
1168  image_.animationDelay( _delay );
1169 }
1170 
1171 // Number of iterations to loop an animation (e.g. Netscape loop
1172 // extension) for.
1174  : _iterations( iterations_ )
1175 {
1176 }
1178 {
1179  image_.animationIterations( _iterations );
1180 }
1181 
1182 // Image background color
1184  : _color( color_ )
1185 {
1186 }
1188 {
1189  image_.backgroundColor( _color );
1190 }
1191 
1192 // Name of texture image to tile onto the image background
1193 Magick::backgroundTextureImage::backgroundTextureImage( const std::string &backgroundTexture_ )
1194  : _backgroundTexture( backgroundTexture_ )
1195 {
1196 }
1198 {
1199  image_.backgroundTexture( _backgroundTexture );
1200 }
1201 
1202 // Image border color
1204  : _color( color_ )
1205 {
1206 }
1208 {
1209  image_.borderColor( _color );
1210 }
1211 
1212 // Text bounding-box base color (default none)
1214  : _boxColor( boxColor_ ) { }
1215 
1217 {
1218  image_.boxColor( _boxColor );
1219 }
1220 
1222  const double y_,const double z_)
1223  : _x(x_),
1224  _y(y_),
1225  _z(z_)
1226 {
1227 }
1228 
1230 {
1231  image_.chromaBluePrimary(_x,_y,_z);
1232 }
1233 
1235  const double y_,const double z_)
1236  : _x(x_),
1237  _y(y_),
1238  _z(z_)
1239 {
1240 }
1241 
1243 {
1244  image_.chromaGreenPrimary(_x,_y,_z);
1245 }
1246 
1248  const double y_,const double z_)
1249  : _x(x_),
1250  _y(y_),
1251  _z(z_)
1252 {
1253 }
1254 
1256 {
1257  image_.chromaRedPrimary(_x,_y,_z);
1258 }
1259 
1261  const double y_,const double z_)
1262  : _x(x_),
1263  _y(y_),
1264  _z(z_)
1265 {
1266 }
1267 
1269 {
1270  image_.chromaWhitePoint(_x,_y,_z);
1271 }
1272 
1273 // Colors within this distance are considered equal
1275  : _fuzz( fuzz_ )
1276 {
1277 }
1279 {
1280  image_.colorFuzz( _fuzz );
1281 }
1282 
1283 // Color at colormap position index_
1285  const Color &color_ )
1286  : _index( index_ ),
1287  _color( color_ )
1288 {
1289 }
1291 {
1292  image_.colorMap( _index, _color );
1293 }
1294 
1295 // Composition operator to be used when composition is implicitly used
1296 // (such as for image flattening).
1297 Magick::composeImage::composeImage( const CompositeOperator compose_ )
1298  : _compose( compose_ )
1299 {
1300 }
1302 {
1303  image_.compose( _compose );
1304 }
1305 
1306 // Compression type
1307 Magick::compressTypeImage::compressTypeImage( const CompressionType compressType_ )
1308  : _compressType( compressType_ )
1309 {
1310 }
1312 {
1313  image_.compressType( _compressType );
1314 }
1315 
1316 // Vertical and horizontal resolution in pixels of the image
1318  : _point( point_ )
1319 {
1320 }
1322 {
1323  image_.density( _point );
1324 }
1325 
1326 // Image depth (bits allocated to red/green/blue components)
1327 Magick::depthImage::depthImage( const size_t depth_ )
1328  : _depth( depth_ )
1329 {
1330 }
1332 {
1333  image_.depth( _depth );
1334 }
1335 
1336 // Endianness (LSBEndian like Intel or MSBEndian like SPARC) for image
1337 // formats which support endian-specific options.
1338 Magick::endianImage::endianImage( const Magick::EndianType endian_ )
1339  : _endian( endian_ )
1340 {
1341 }
1343 {
1344  image_.endian( _endian );
1345 }
1346 
1347 // Image file name
1348 Magick::fileNameImage::fileNameImage( const std::string &fileName_ )
1349  : _fileName( fileName_ )
1350 {
1351 }
1353 {
1354  image_.fileName( _fileName );
1355 }
1356 
1357 // Filter to use when resizing image
1358 Magick::filterTypeImage::filterTypeImage( const FilterType filterType_ )
1359  : _filterType( filterType_ )
1360 {
1361 }
1363 {
1364  image_.filterType( _filterType );
1365 }
1366 
1367 // Text rendering font
1368 Magick::fontImage::fontImage( const std::string &font_ )
1369  : _font( font_ )
1370 {
1371 }
1373 {
1374  image_.font( _font );
1375 }
1376 
1377 // Font point size
1379  : _pointsize( pointsize_ )
1380 {
1381 }
1383 {
1384  image_.fontPointsize( _pointsize );
1385 }
1386 
1387 // GIF disposal method
1388 Magick::gifDisposeMethodImage::gifDisposeMethodImage( const DisposeType disposeMethod_ )
1389  : _disposeMethod( disposeMethod_ )
1390 {
1391 }
1393 {
1394  image_.gifDisposeMethod( _disposeMethod );
1395 }
1396 
1397 // Type of interlacing to use
1398 Magick::interlaceTypeImage::interlaceTypeImage( const InterlaceType interlace_ )
1399  : _interlace( interlace_ )
1400 {
1401 }
1403 {
1404  image_.interlaceType( _interlace );
1405 }
1406 
1407 // File type magick identifier (.e.g "GIF")
1408 Magick::magickImage::magickImage( const std::string &magick_ )
1409  : _magick( magick_ )
1410 {
1411 }
1413 {
1414  image_.magick( _magick );
1415 }
1416 
1417 // Image supports transparent color
1419  : _alphaFlag( alphaFlag_ )
1420 {
1421 }
1423 {
1424  image_.alpha( _alphaFlag );
1425 }
1426 
1427 // Transparent color
1429  : _matteColor( matteColor_ )
1430 {
1431 }
1433 {
1434  image_.matteColor( _matteColor );
1435 }
1436 
1437 // Indicate that image is black and white
1438 Magick::monochromeImage::monochromeImage( const bool monochromeFlag_ )
1439  : _monochromeFlag( monochromeFlag_ )
1440 {
1441 }
1443 {
1444  image_.monochrome( _monochromeFlag );
1445 }
1446 
1447 // Set pixel color at location x & y.
1449  const ssize_t y_,
1450  const Color &color_)
1451  : _x( x_ ),
1452  _y( y_ ),
1453  _color( color_ ) { }
1454 
1456 {
1457  image_.pixelColor( _x, _y, _color );
1458 }
1459 
1460 // Postscript page size.
1462  : _pageSize( pageSize_ )
1463 {
1464 }
1466 {
1467  image_.page( _pageSize );
1468 }
1469 
1470 // JPEG/MIFF/PNG compression level (default 75).
1471 Magick::qualityImage::qualityImage( const size_t quality_ )
1472  : _quality( quality_ )
1473 {
1474 }
1476 {
1477  image_.quality( _quality );
1478 }
1479 
1480 // Maximum number of colors to quantize to
1482  : _colors( colors_ )
1483 {
1484 }
1486 {
1487  image_.quantizeColors( _colors );
1488 }
1489 
1490 // Colorspace to quantize in.
1492  : _colorSpace( colorSpace_ )
1493 {
1494 }
1496 {
1497  image_.quantizeColorSpace( _colorSpace );
1498 }
1499 
1500 // Dither image during quantization (default true).
1502  : _ditherFlag( ditherFlag_ )
1503 {
1504 }
1506 {
1507  image_.quantizeDither( _ditherFlag );
1508 }
1509 
1510 // Quantization tree-depth
1512  : _treeDepth( treeDepth_ ) { }
1513 
1515 {
1516  image_.quantizeTreeDepth( _treeDepth );
1517 }
1518 
1519 // The type of rendering intent
1520 Magick::renderingIntentImage::renderingIntentImage( const Magick::RenderingIntent renderingIntent_ )
1521  : _renderingIntent( renderingIntent_ )
1522 {
1523 }
1525 {
1526  image_.renderingIntent( _renderingIntent );
1527 }
1528 
1529 // Units of image resolution
1530 Magick::resolutionUnitsImage::resolutionUnitsImage( const Magick::ResolutionType resolutionUnits_ )
1531  : _resolutionUnits( resolutionUnits_ )
1532 {
1533 }
1535 {
1536  image_.resolutionUnits( _resolutionUnits );
1537 }
1538 
1539 // Image scene number
1540 Magick::sceneImage::sceneImage( const size_t scene_ )
1541  : _scene( scene_ )
1542 {
1543 }
1545 {
1546  image_.scene( _scene );
1547 }
1548 
1549 // Width and height of a raw image
1551  : _geometry( geometry_ )
1552 {
1553 }
1555 {
1556  image_.size( _geometry );
1557 }
1558 
1559 // Splice the background color into the image.
1561  : _geometry( geometry_ )
1562 {
1563 }
1565 {
1566  image_.splice( _geometry );
1567 }
1568 
1569 // stripImage strips an image of all profiles and comments.
1571 {
1572 }
1574 {
1575  image_.strip( );
1576 }
1577 
1578 // Subimage of an image sequence
1579 Magick::subImageImage::subImageImage( const size_t subImage_ )
1580  : _subImage( subImage_ )
1581 {
1582 }
1584 {
1585  image_.subImage( _subImage );
1586 }
1587 
1588 // Number of images relative to the base image
1589 Magick::subRangeImage::subRangeImage( const size_t subRange_ )
1590  : _subRange( subRange_ )
1591 {
1592 }
1594 {
1595  image_.subRange( _subRange );
1596 }
1597 
1598 // Anti-alias Postscript and TrueType fonts (default true)
1600  : _flag( flag_ )
1601 {
1602 }
1604 {
1605  image_.textAntiAlias( _flag );
1606 }
1607 
1608 // Image storage type
1609 Magick::typeImage::typeImage( const Magick::ImageType type_ )
1610  : _type( type_ )
1611 {
1612 }
1614 {
1615  image_.type( _type );
1616 }
1617 
1618 // Print detailed information about the image
1620  : _verbose( verbose_ )
1621 {
1622 }
1624 {
1625  image_.verbose( _verbose );
1626 }
1627 
1628 // X11 display to display to, obtain fonts from, or to capture image
1629 // from
1630 Magick::x11DisplayImage::x11DisplayImage( const std::string &display_ )
1631  : _display( display_ )
1632 {
1633 }
1635 {
1636  image_.x11Display( _display );
1637 }
modulateImage(const double brightness_, const double saturation_, const double hue_)
Definition: STL.cpp:694
solarizeImage(const double factor_)
Definition: STL.cpp:1015
flopImage(void)
Definition: STL.cpp:522
implodeImage(const double factor_=50)
Definition: STL.cpp:597
void gaussianBlur(const double radius_, const double sigma_)
Definition: Image.cpp:3237
void swirl(const double degrees_)
Definition: Image.cpp:4607
void operator()(Image &image_) const
Definition: STL.cpp:1155
void operator()(Image &image_) const
Definition: STL.cpp:1070
void operator()(Image &image_) const
Definition: STL.cpp:1019
void operator()(Image &image_) const
Definition: STL.cpp:129
void operator()(Image &image_) const
Definition: STL.cpp:322
fontImage(const std::string &font_)
Definition: STL.cpp:1368
void operator()(Image &image_) const
Definition: STL.cpp:347
sharpenImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:981
void textAntiAlias(const bool flag_)
Definition: Image.cpp:1532
void splice(const Geometry &geometry_)
Definition: Image.cpp:4510
void resize(const Geometry &geometry_)
Definition: Image.cpp:4161
void operator()(Image &image_) const
Definition: STL.cpp:1039
commentImage(const std::string &comment_)
Definition: STL.cpp:225
textAntiAliasImage(const bool flag_)
Definition: STL.cpp:1599
void operator()(Image &image_) const
Definition: STL.cpp:462
void modulate(const double brightness_, const double saturation_, const double hue_)
Definition: Image.cpp:3600
backgroundColorImage(const Color &color_)
Definition: STL.cpp:1183
void operator()(Image &image_) const
Definition: STL.cpp:1321
rotateImage(const double degrees_)
Definition: STL.cpp:907
void annotate(const std::string &text_, const Geometry &location_)
Definition: Image.cpp:1845
animationIterationsImage(const size_t iterations_)
Definition: STL.cpp:1173
void operator()(Image &image_) const
Definition: STL.cpp:1060
backgroundTextureImage(const std::string &backgroundTexture_)
Definition: STL.cpp:1193
void chromaGreenPrimary(const double x_, const double y_, const double z_)
Definition: Image.cpp:2242
void magick(const std::string &magick_)
Definition: Image.cpp:1129
compositeImage(const Image &compositeImage_, ::ssize_t xOffset_, ::ssize_t yOffset_, CompositeOperator compose_=InCompositeOp)
void adaptiveThreshold(const size_t width_, const size_t height_, const double bias_=0.0)
Definition: Image.cpp:1769
void operator()(Image &image_) const
Definition: STL.cpp:986
void x11Display(const std::string &display_)
Definition: Image.cpp:1690
void charcoal(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:2187
void operator()(Image &image_) const
Definition: STL.cpp:1100
void blur(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:2094
void operator()(Image &image_) const
Definition: STL.cpp:1109
qualityImage(const size_t quality_)
Definition: STL.cpp:1471
void contrast(const bool sharpen_)
Definition: Image.cpp:2584
alphaImage(const unsigned int alpha_)
Definition: STL.cpp:744
resizeImage(const Geometry &geometry_)
Definition: STL.cpp:1127
floodFillAlphaImage(const ::ssize_t x_, const ::ssize_t y_, const unsigned int alpha_, const Color &target_, const bool invert_=false)
Definition: STL.cpp:405
void operator()(Image &image_) const
Definition: STL.cpp:1090
void medianFilter(const double radius_=0.0)
Definition: Image.cpp:3577
void operator()(Image &image_) const
Definition: STL.cpp:400
void enhance(void)
Definition: Image.cpp:2864
void chop(const Geometry &geometry_)
Definition: Image.cpp:2212
void operator()(Image &image_) const
Definition: STL.cpp:150
void composite(const Image &compositeImage_, const Geometry &offset_, const CompositeOperator compose_=InCompositeOp)
Definition: Image.cpp:2522
void operator()(Image &image_) const
Definition: STL.cpp:1455
void adjoin(const bool flag_)
Definition: Image.cpp:294
void operator()(Image &image_) const
Definition: STL.cpp:372
void operator()(Image &image_) const
Definition: STL.cpp:1583
void negate(const bool grayscale_=false)
Definition: Image.cpp:3729
size_t depth(void) const
Definition: STL.cpp:828
void operator()(Image &image_) const
Definition: STL.cpp:1412
void raise(const Geometry &geometry_=raiseGeometryDefault, const bool raisedFlag_=false)
Definition: Image.cpp:3992
void operator()(Image &image_) const
Definition: STL.cpp:1564
contrastImage(const size_t sharpen_)
Definition: STL.cpp:261
void renderingIntent(const RenderingIntent renderingIntent_)
Definition: Image.cpp:1325
void crop(const Geometry &geometry_)
Definition: Image.cpp:2654
void operator()(Image &image_) const
Definition: STL.cpp:760
alphaFlagImage(const bool alphaFlag_)
Definition: STL.cpp:1418
minifyImage(void)
Definition: STL.cpp:685
void operator()(Image &image_) const
Definition: STL.cpp:1080
void density(const Point &density_)
Definition: Image.cpp:651
void operator()(Image &image_) const
Definition: STL.cpp:1342
void operator()(Image &image_) const
Definition: STL.cpp:1534
densityImage(const Point &point_)
Definition: STL.cpp:1317
frameImage(const Geometry &geometry_=frameGeometryDefault)
Definition: STL.cpp:531
void operator()(Image &image_) const
Definition: STL.cpp:1278
void operator()(Image &image_) const
Definition: STL.cpp:172
void subRange(const size_t subRange_)
Definition: Image.cpp:1521
void comment(const std::string &comment_)
Definition: Image.cpp:593
void operator()(Image &image_) const
Definition: STL.cpp:1593
void operator()(Image &image_) const
Definition: STL.cpp:1613
adaptiveBlurImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:17
sizeImage(const Geometry &geometry_)
Definition: STL.cpp:1550
void operator()(Image &image_) const
Definition: STL.cpp:901
void operator()(Image &image_) const
Definition: STL.cpp:1255
shadowImage(const double percent_opacity_=80, const double sigma_=0.5, const ssize_t x_=5, const ssize_t y_=5)
Definition: STL.cpp:966
colorizeImage(const unsigned int alphaRed_, const unsigned int alphaGreen_, const unsigned int alphaBlue_, const Color &penColor_)
Definition: STL.cpp:178
typeImage(const ImageType type_)
Definition: STL.cpp:1609
void operator()(Image &image_) const
Definition: STL.cpp:1050
subImageImage(const size_t subImage_)
Definition: STL.cpp:1579
cropImage(const Geometry &geometry_)
Definition: STL.cpp:271
void shade(const double azimuth_=30, const double elevation_=30, const bool colorShading_=false)
Definition: Image.cpp:4383
void operator()(Image &image_) const
Definition: STL.cpp:1603
composeImage(const CompositeOperator compose_)
Definition: STL.cpp:1297
void operator()(Image &image_) const
Definition: STL.cpp:679
Geometry density(void) const
Definition: STL.cpp:815
colorFuzzImage(const double fuzz_)
Definition: STL.cpp:1274
void operator()(Image &image_) const
Definition: STL.cpp:391
void equalize(void)
Definition: Image.cpp:2875
void zoom(const Geometry &geometry_)
Definition: Image.cpp:4981
void page(const Geometry &pageSize_)
Definition: Image.cpp:1233
void operator()(Image &image_) const
Definition: STL.cpp:219
void strokeColor(const Color &strokeColor_)
Definition: Image.cpp:1390
magickImage(const std::string &magick_)
Definition: STL.cpp:1408
swirlImage(const double degrees_)
Definition: STL.cpp:1066
quantizeImage(const bool measureError_=false)
Definition: STL.cpp:766
void operator()(Image &image_) const
Definition: STL.cpp:1392
pixelColorImage(const ::ssize_t x_, const ::ssize_t y_, const Color &color_)
Definition: STL.cpp:1448
filterTypeImage(const FilterType filterType_)
Definition: STL.cpp:1358
void operator()(Image &image_) const
Definition: STL.cpp:363
void oilPaint(const double radius_=0.0, const double sigma=1.0)
Definition: Image.cpp:3756
void operator()(Image &image_) const
Definition: STL.cpp:748
sceneImage(const size_t scene_)
Definition: STL.cpp:1540
void floodFillTexture(const Geometry &point_, const Image &texture_, const bool invert_=false)
Definition: Image.cpp:3069
shadeImage(const double azimuth_=30, const double elevation_=30, const bool colorShading_=false)
Definition: STL.cpp:952
void operator()(Image &image_) const
Definition: STL.cpp:1505
isValidImage(const bool isValid_)
Definition: STL.cpp:619
void spread(const double amount_=3.0)
Definition: Image.cpp:4539
drawImage(const Drawable &drawable_)
Definition: STL.cpp:328
borderImage(const Geometry &geometry_=borderGeometryDefault)
Definition: STL.cpp:125
void operator()(Image &image_) const
Definition: STL.cpp:513
void operator()(Image &image_) const
Definition: STL.cpp:723
void filterType(const FilterType filterType_)
Definition: Image.cpp:839
void operator()(Image &image_) const
Definition: STL.cpp:229
spliceImage(const Geometry &geometry_)
Definition: STL.cpp:1560
adaptiveThresholdImage(const size_t width_, const size_t height_, const ::ssize_t offset_=0)
Definition: STL.cpp:29
void operator()(Image &image_) const
Definition: STL.cpp:770
void colorMatrix(const size_t order_, const double *color_matrix_)
Definition: Image.cpp:2417
void pixelColor(const ::ssize_t x_, const ::ssize_t y_, const Color &color_)
void operator()(Image &image_) const
Definition: STL.cpp:1216
void operator()(Image &image_) const
Definition: STL.cpp:255
void verbose(const bool verboseFlag_)
Definition: Image.cpp:1665
addNoiseImage(const NoiseType noiseType_, const double attenuate_=1.0)
Definition: STL.cpp:43
void emboss(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:2845
void magnify(void)
Definition: Image.cpp:3543
fileNameImage(const std::string &fileName_)
Definition: STL.cpp:1348
pageImage(const Geometry &pageSize_)
Definition: STL.cpp:1461
void segment(const double clusterThreshold_=1.0, const double smoothingThreshold_=1.5)
Definition: Image.cpp:4289
fontPointsizeImage(const size_t pointsize_)
Definition: STL.cpp:1378
void reduceNoise(void)
Definition: Image.cpp:4122
compressTypeImage(const CompressionType compressType_)
Definition: STL.cpp:1307
void stegano(const Image &watermark_)
Definition: Image.cpp:4555
void sharpen(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:4409
endianImage(const EndianType endian_)
Definition: STL.cpp:1338
affineTransformImage(const DrawableAffine &affine_)
Definition: STL.cpp:56
void operator()(Image &image_) const
Definition: STL.cpp:1554
void operator()(Image &image_) const
Definition: STL.cpp:1544
void floodFillAlpha(const ::ssize_t x_, const ::ssize_t y_, const unsigned int alpha_, const bool invert_=false)
void trim(void)
Definition: Image.cpp:4770
void colorFuzz(const double fuzz_)
Definition: Image.cpp:525
floodFillTextureImage(const ::ssize_t x_, const ::ssize_t y_, const Image &texture_, const bool invert_=false)
void operator()(Image &image_) const
Definition: STL.cpp:1177
void solarize(const double factor_=50.0)
Definition: Image.cpp:4486
void stereo(const Image &rightImage_)
Definition: Image.cpp:4566
void quantize(const bool measureError_=false)
Definition: Image.cpp:3978
void boxColor(const Color &boxColor_)
Definition: Image.cpp:455
void operator()(Image &image_) const
Definition: STL.cpp:1141
void operator()(Image &image_) const
Definition: STL.cpp:1372
void operator()(Image &image_) const
Definition: STL.cpp:1514
chopImage(const Geometry &geometry_)
Definition: STL.cpp:156
void frame(const Geometry &geometry_=frameGeometryDefault)
Definition: Image.cpp:3146
void operator()(Image &image_) const
Definition: STL.cpp:783
colorMapImage(const size_t index_, const Color &color_)
Definition: STL.cpp:1284
Geometry size(void) const
Definition: STL.cpp:861
void quantizeTreeDepth(const size_t treeDepth_)
Definition: Image.cpp:1303
void operator()(Image &image_) const
Definition: STL.cpp:975
void operator()(Image &image_) const
Definition: STL.cpp:139
void flip(void)
Definition: Image.cpp:2984
void backgroundTexture(const std::string &backgroundTexture_)
Definition: Image.cpp:391
void shave(const Geometry &geometry_)
Definition: Image.cpp:4434
void operator()(Image &image_) const
Definition: STL.cpp:1432
borderColorImage(const Color &color_)
Definition: STL.cpp:1203
fillColorImage(const Color &fillColor_)
Definition: STL.cpp:387
void borderColor(const Color &color_)
Definition: Image.cpp:427
void font(const std::string &font_)
Definition: Image.cpp:850
quantizeColorSpaceImage(const ColorspaceType colorSpace_)
Definition: STL.cpp:1491
void operator()(Image &image_) const
Definition: STL.cpp:337
void fontPointsize(const double pointSize_)
Definition: Image.cpp:872
void operator()(Image &image_) const
Definition: STL.cpp:1623
class MagickPPExport Geometry
Definition: Geometry.h:19
void operator()(Image &image_) const
Definition: STL.cpp:1166
void operator()(Image &image_) const
Definition: STL.cpp:1331
void scene(const size_t scene_)
Definition: Image.cpp:1355
rollImage(const Geometry &roll_)
Definition: STL.cpp:890
void edge(const double radius_=0.0)
Definition: Image.cpp:2834
void operator()(Image &image_) const
Definition: STL.cpp:1634
strokeColorImage(const Color &strokeColor_)
Definition: STL.cpp:1056
quantizeColorsImage(const size_t colors_)
Definition: STL.cpp:1481
void operator()(Image &image_) const
Definition: STL.cpp:1485
void operator()(Image &image_) const
Definition: STL.cpp:921
void quality(const size_t quality_)
Definition: Image.cpp:1246
void gifDisposeMethod(const DisposeType disposeMethod_)
void operator()(Image &image_) const
Definition: STL.cpp:546
void texture(const Image &texture_)
Definition: Image.cpp:4626
void fillColor(const Color &fillColor_)
Definition: Image.cpp:784
void endian(const EndianType endian_)
Definition: Image.cpp:715
void operator()(Image &image_) const
Definition: STL.cpp:50
sampleImage(const Geometry &geometry_)
Definition: STL.cpp:917
haldClutImage(const Image &haldClutImage_)
Definition: STL.cpp:587
opaqueImage(const Color &opaqueColor_, const Color &penColor_)
Definition: STL.cpp:754
void shadow(const double percentAlpha_=80.0, const double sigma_=0.5, const ssize_t x_=5, const ssize_t y_=5)
Definition: Image.cpp:4396
void operator()(Image &image_) const
Definition: STL.cpp:1402
void minify(void)
Definition: Image.cpp:3589
void scale(const Geometry &geometry_)
Definition: Image.cpp:4267
zoomImage(const Geometry &geometry_)
Definition: STL.cpp:1137
void operator()(Image &image_) const
Definition: STL.cpp:1029
colorSpaceImage(ColorspaceType colorSpace_)
Definition: STL.cpp:215
void size(const Geometry &geometry_)
Definition: Image.cpp:1366
void operator()(Image &image_) const
Definition: STL.cpp:285
void operator()(Image &image_) const
Definition: STL.cpp:633
bool quiet(void) const
Definition: STL.cpp:848
textureImage(const Image &texture_)
Definition: STL.cpp:1076
void operator()(Image &image_) const
Definition: STL.cpp:668
void operator()(Image &image_) const
Definition: STL.cpp:566
void operator()(Image &image_) const
Definition: STL.cpp:1301
interlaceTypeImage(const InterlaceType interlace_)
Definition: STL.cpp:1398
void draw(const Drawable &drawable_)
Definition: Image.cpp:2785
floodFillColorImage(const Geometry &point_, const Color &fillColor_, const bool invert_=false)
Definition: STL.cpp:431
labelImage(const std::string &label_)
Definition: STL.cpp:629
x11DisplayImage(const std::string &display_)
Definition: STL.cpp:1630
void label(const std::string &label_)
Definition: Image.cpp:1095
void operator()(Image &image_) const
Definition: STL.cpp:1422
void operator()(Image &image_) const
Definition: STL.cpp:931
void operator()(Image &image_) const
Definition: STL.cpp:591
depthImage(const size_t depth_)
Definition: STL.cpp:1327
void operator()(Image &image_) const
Definition: STL.cpp:196
void matteColor(const Color &matteColor_)
Definition: Image.cpp:329
void operator()(Image &image_) const
Definition: STL.cpp:294
void operator()(Image &image_) const
Definition: STL.cpp:119
void operator()(Image &image_) const
Definition: STL.cpp:960
void operator()(Image &image_) const
Definition: STL.cpp:1008
void implode(const double factor_)
Definition: Image.cpp:3356
blurImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:114
transparentImage(const Color &color_)
Definition: STL.cpp:1096
void operator()(Image &image_) const
Definition: STL.cpp:1465
shearImage(const double xShearAngle_, const double yShearAngle_)
Definition: STL.cpp:1002
boxColorImage(const Color &boxColor_)
Definition: STL.cpp:1213
chromaGreenPrimaryImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1234
trimImage(void)
Definition: STL.cpp:1106
void operator()(Image &image_) const
Definition: STL.cpp:688
void interlaceType(const InterlaceType interlace_)
Definition: Image.cpp:1011
void colorSpace(const ColorspaceType colorSpace_)
Definition: Image.cpp:558
magnifyImage(void)
Definition: STL.cpp:653
void chromaBluePrimary(const double x_, const double y_, const double z_)
Definition: Image.cpp:2226
void operator()(Image &image_) const
Definition: STL.cpp:1382
void operator()(Image &image_) const
Definition: STL.cpp:946
void wave(const double amplitude_=25.0, const double wavelength_=150.0)
Definition: Image.cpp:4836
colorMatrixImage(const size_t order_, const double *color_matrix_)
Definition: STL.cpp:203
double gamma(void) const
Definition: Image.cpp:945
void threshold(const double threshold_)
Definition: Image.cpp:4634
void operator()(Image &image_) const
Definition: STL.cpp:416
verboseImage(const bool verbose_)
Definition: STL.cpp:1619
void operator()(Image &image_) const
Definition: STL.cpp:209
void roll(const Geometry &roll_)
Definition: Image.cpp:4186
void operator()(Image &image_) const
Definition: STL.cpp:60
steganoImage(const Image &waterMark_)
Definition: STL.cpp:1035
stereoImage(const Image &rightImage_)
Definition: STL.cpp:1046
embossImage(void)
Definition: STL.cpp:353
void operator()(Image &image_) const
Definition: STL.cpp:612
spreadImage(const size_t amount_=3)
Definition: STL.cpp:1025
void strip(void)
Definition: Image.cpp:4577
void operator()(Image &image_) const
Definition: STL.cpp:1268
void operator()(Image &image_) const
Definition: STL.cpp:1187
void adaptiveBlur(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:1711
void operator()(Image &image_) const
Definition: STL.cpp:1197
channelImage(const ChannelType channel_)
Definition: STL.cpp:135
void operator()(Image &image_) const
Definition: STL.cpp:623
void transparent(const Color &color_, const bool inverse_=false)
Definition: Image.cpp:4697
void inverseFourierTransform(const Image &phase_)
Definition: Image.cpp:3368
void colorize(const unsigned int alpha_, const Color &penColor_)
Definition: Image.cpp:2345
bool ping(void) const
Definition: STL.cpp:838
stripImage(void)
Definition: STL.cpp:1570
void operator()(Image &image_) const
Definition: STL.cpp:1475
void operator()(Image &image_) const
Definition: STL.cpp:525
void cdl(const std::string &cdl_)
Definition: Image.cpp:2168
void alpha(const bool alphaFlag_)
Definition: Image.cpp:305
void operator()(Image &image_) const
Definition: STL.cpp:911
void operator()(Image &image_) const
Definition: STL.cpp:381
waveImage(const double amplitude_=25.0, const double wavelength_=150.0)
Definition: STL.cpp:1115
void distort(const DistortMethod method_, const size_t numberArguments_, const double *arguments_, const bool bestfit_=false)
Definition: Image.cpp:2772
void animationDelay(const size_t delay_)
Definition: Image.cpp:352
void isValid(const bool isValid_)
Definition: Image.cpp:1074
void border(const Geometry &geometry_=borderGeometryDefault)
Definition: Image.cpp:2119
matteColorImage(const Color &matteColor_)
Definition: STL.cpp:1428
void operator()(Image &image_) const
Definition: STL.cpp:275
void addNoise(const NoiseType noiseType_, const double attenuate_=1.0)
Definition: Image.cpp:1783
void sample(const Geometry &geometry_)
Definition: Image.cpp:4245
inverseFourierTransformImage(const Image &phaseImage_)
Definition: STL.cpp:608
flipImage(void)
Definition: STL.cpp:397
void affineTransform(const DrawableAffine &affine)
Definition: Image.cpp:1808
void compose(const CompositeOperator compose_)
Definition: Image.cpp:618
edgeImage(const double radius_=0.0)
Definition: STL.cpp:343
void subImage(const size_t subImage_)
Definition: Image.cpp:1510
void operator()(Image &image_) const
Definition: STL.cpp:1362
chromaRedPrimaryImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1247
monochromeImage(const bool monochromeFlag_)
Definition: STL.cpp:1438
shaveImage(const Geometry &geometry_)
Definition: STL.cpp:992
medianConvolveImage(const double radius_=0.0)
Definition: STL.cpp:675
void operator()(Image &image_) const
Definition: STL.cpp:702
subRangeImage(const size_t subRange_)
Definition: STL.cpp:1589
renderingIntentImage(const RenderingIntent renderingIntent_)
Definition: STL.cpp:1520
cdlImage(const std::string &cdl_)
Definition: STL.cpp:168
void chromaRedPrimary(const double x_, const double y_, const double z_)
Definition: Image.cpp:2258
ReadOptions(void)
Definition: STL.cpp:788
gifDisposeMethodImage(const DisposeType disposeMethod_)
Definition: STL.cpp:1388
void resolutionUnits(const ResolutionType resolutionUnits_)
Definition: Image.cpp:1337
void operator()(Image &image_) const
Definition: STL.cpp:1573
charcoalImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:145
void operator()(Image &image_) const
Definition: STL.cpp:733
scaleImage(const Geometry &geometry_)
Definition: STL.cpp:927
void quantizeColors(const size_t colors_)
Definition: Image.cpp:1258
MagickPPExport void CloneString(char **destination_, const std::string &source_)
Definition: Functions.cpp:23
quantizeDitherImage(const bool ditherFlag_)
Definition: STL.cpp:1501
void chromaWhitePoint(const double x_, const double y_, const double z_)
Definition: Image.cpp:2274
void operator()(Image &image_) const
Definition: STL.cpp:581
MagickCore::ImageInfo * imageInfo(void)
Definition: STL.cpp:869
oilPaintImage(const double radius_=3)
Definition: STL.cpp:729
Definition: Blob.h:15
void operator()(Image &image_) const
Definition: STL.cpp:1311
chromaWhitePointImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1260
resolutionUnitsImage(const ResolutionType resolutionUnits_)
Definition: STL.cpp:1530
void operator()(Image &image_) const
Definition: STL.cpp:1131
void operator()(Image &image_) const
Definition: STL.cpp:713
chromaBluePrimaryImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1221
void floodFillColor(const Geometry &point_, const Color &fillColor_, const bool invert_=false)
Definition: Image.cpp:3031
void flop(void)
Definition: Image.cpp:3107
void despeckle(void)
Definition: Image.cpp:2754
void operator()(Image &image_) const
Definition: STL.cpp:1242
void channel(const ChannelType channel_)
Definition: Image.cpp:2176
void operator()(Image &image_) const
Definition: STL.cpp:1207
void operator()(Image &image_) const
Definition: STL.cpp:1229
levelImage(const double black_point, const double white_point, const double mid_point=1.0)
Definition: STL.cpp:639
void normalize(void)
Definition: Image.cpp:3748
void operator()(Image &image_) const
Definition: STL.cpp:265
void animationIterations(const size_t iterations_)
Definition: Image.cpp:363
void operator()(Image &image_) const
Definition: STL.cpp:1121
annotateImage(const std::string &text_, const Geometry &geometry_)
Definition: STL.cpp:68
cycleColormapImage(const ::ssize_t amount_)
Definition: STL.cpp:281
void operator()(Image &image_) const
Definition: STL.cpp:160
void backgroundColor(const Color &color_)
Definition: Image.cpp:374
thresholdImage(const double threshold_)
Definition: STL.cpp:1086
void quantizeDither(const bool ditherFlag_)
Definition: Image.cpp:1281
void operator()(Image &image_) const
Definition: STL.cpp:656
void opaque(const Color &opaqueColor_, const Color &penColor_, const bool invert_=false)
Definition: Image.cpp:3767
void colorMap(const size_t index_, const Color &color_)
Definition: Image.cpp:2377
segmentImage(const double clusterThreshold_=1.0, const double smoothingThreshold_=1.5)
Definition: STL.cpp:940
void depth(const size_t depth_)
Definition: Image.cpp:691
void operator()(Image &image_) const
Definition: STL.cpp:647
void isValid(bool isValid_)
Definition: Geometry.cpp:367
raiseImage(const Geometry &geometry_=raiseGeometryDefault, const bool raisedFlag_=false)
Definition: STL.cpp:777
void operator()(Image &image_) const
Definition: STL.cpp:601
quantizeTreeDepthImage(const size_t treeDepth_)
Definition: STL.cpp:1511
negateImage(const bool grayscale_=false)
Definition: STL.cpp:709
void cycleColormap(const ::ssize_t amount_)
Definition: Image.cpp:2668
void operator()(Image &image_) const
Definition: STL.cpp:996
void level(const double blackPoint_, const double whitePoint_, const double gamma_=1.0)
Definition: Image.cpp:3411
void operator()(Image &image_) const
Definition: STL.cpp:1524
mapImage(const Image &mapImage_, const bool dither_=false)
Definition: STL.cpp:662
void operator()(Image &image_) const
Definition: STL.cpp:23
void fileName(const std::string &fileName_)
Definition: Image.cpp:757
void operator()(Image &image_) const
Definition: STL.cpp:1352
enhanceImage(void)
Definition: STL.cpp:369
void type(const ImageType type_)
Definition: Image.cpp:1656
void quantizeColorSpace(const ColorspaceType colorSpace_)
Definition: Image.cpp:1269
void compressType(const CompressionType compressType_)
Definition: Image.cpp:628
gammaImage(const double gamma_)
Definition: STL.cpp:552
adjoinImage(const bool flag_)
Definition: STL.cpp:1151
void haldClut(const Image &clutImage_)
Definition: Image.cpp:3324
void operator()(Image &image_) const
Definition: STL.cpp:1495
void shear(const double xShearAngle_, const double yShearAngle_)
Definition: Image.cpp:4448
void operator()(Image &image_) const
Definition: STL.cpp:37
gaussianBlurImage(const double width_, const double sigma_)
Definition: STL.cpp:575
void operator()(Image &image_) const
Definition: STL.cpp:883
animationDelayImage(const size_t delay_)
Definition: STL.cpp:1162
distortImage(const Magick::DistortMethod method_, const size_t number_arguments_, const double *arguments_, const bool bestfit_)
Definition: STL.cpp:303
void monochrome(const bool monochromeFlag_)
Definition: Image.cpp:1189
void operator()(Image &image_) const
Definition: STL.cpp:1442
void operator()(Image &image_) const
Definition: STL.cpp:1290
void rotate(const double degrees_)
Definition: Image.cpp:4209
void map(const Image &mapImage_, const bool dither_=false)
Definition: Image.cpp:3554
void operator()(Image &image_) const
Definition: STL.cpp:108