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