Magick++  7.0.8
Convert, Edit, Or Compose Bitmap Images
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::size(const Geometry &geometry_)
834 {
835  _imageInfo->size=(char *) RelinquishMagickMemory(_imageInfo->size);
836 
837  if ( geometry_.isValid() )
838  Magick::CloneString(&_imageInfo->size,geometry_);
839 }
840 
842 {
843  if (_imageInfo->size)
844  return(Geometry(_imageInfo->size));
845 
846  return(Geometry());
847 }
848 
849 void Magick::ReadOptions::quiet(const bool quiet_)
850 {
851  _quiet=quiet_;
852 }
853 
855 {
856  return(_quiet);
857 }
858 
859 MagickCore::ImageInfo *Magick::ReadOptions::imageInfo(void)
860 {
861  return(_imageInfo);
862 }
863 
864 // Reduce noise in image using a noise peak elimination filter
866  : _order(3)
867 {
868 }
870  : _order(order_)
871 {
872 }
874 {
875  image_.reduceNoise( _order );
876 }
877 
878 // Roll image (rolls image vertically and horizontally) by specified
879 // number of columnms and rows)
881  : _columns( roll_.width() ),
882  _rows( roll_.height() )
883 {
884 }
885 Magick::rollImage::rollImage( const ssize_t columns_,
886  const ssize_t rows_ )
887  : _columns( columns_ ),
888  _rows( rows_ )
889 {
890 }
892 {
893  image_.roll( _columns, _rows );
894 }
895 
896 // Rotate image counter-clockwise by specified number of degrees.
897 Magick::rotateImage::rotateImage( const double degrees_ )
898  : _degrees( degrees_ )
899 {
900 }
902 {
903  image_.rotate( _degrees );
904 }
905 
906 // Resize image by using pixel sampling algorithm
908  : _geometry( geometry_ )
909 {
910 }
912 {
913  image_.sample( _geometry );
914 }
915 
916 // Resize image by using simple ratio algorithm
918  : _geometry( geometry_ )
919 {
920 }
922 {
923  image_.scale( _geometry );
924 }
925 
926 // Segment (coalesce similar image components) by analyzing the
927 // histograms of the color components and identifying units that are
928 // homogeneous with the fuzzy c-means technique. Also uses
929 // QuantizeColorSpace and Verbose image attributes
930 Magick::segmentImage::segmentImage( const double clusterThreshold_ ,
931  const double smoothingThreshold_ )
932  : _clusterThreshold( clusterThreshold_ ),
933  _smoothingThreshold( smoothingThreshold_ )
934 {
935 }
937 {
938  image_.segment( _clusterThreshold, _smoothingThreshold );
939 }
940 
941 // Shade image using distant light source
942 Magick::shadeImage::shadeImage( const double azimuth_,
943  const double elevation_,
944  const bool colorShading_)
945  : _azimuth( azimuth_ ),
946  _elevation( elevation_ ),
947  _colorShading (colorShading_)
948 {
949 }
951 {
952  image_.shade( _azimuth, _elevation, _colorShading );
953 }
954 
955 // Simulate an image shadow
956 Magick::shadowImage::shadowImage( const double percent_opacity_,
957  const double sigma_,
958  const ssize_t x_, const ssize_t y_ )
959  : _percent_opacity( percent_opacity_ ),
960  _sigma( sigma_ ),
961  _x ( x_ ),
962  _y ( y_ )
963 {
964 }
966 {
967  image_.shadow( _percent_opacity, _sigma, _x, _y );
968 }
969 
970 // Sharpen pixels in image
971 Magick::sharpenImage::sharpenImage( const double radius_, const double sigma_ )
972  : _radius( radius_ ),
973  _sigma( sigma_ )
974 {
975 }
977 {
978  image_.sharpen( _radius, _sigma );
979 }
980 
981 // Shave pixels from image edges.
983  : _geometry( geometry_ )
984 {
985 }
987 {
988  image_.shave( _geometry );
989 }
990 
991 // Shear image (create parallelogram by sliding image by X or Y axis)
992 Magick::shearImage::shearImage( const double xShearAngle_,
993  const double yShearAngle_ )
994  : _xShearAngle( xShearAngle_ ),
995  _yShearAngle( yShearAngle_ )
996 {
997 }
999 {
1000  image_.shear( _xShearAngle, _yShearAngle );
1001 }
1002 
1003 // Solarize image (similar to effect seen when exposing a photographic
1004 // film to light during the development process)
1006  : _factor( factor_ )
1007 {
1008 }
1010 {
1011  image_.solarize( _factor );
1012 }
1013 
1014 // Spread pixels randomly within image by specified ammount
1015 Magick::spreadImage::spreadImage( const size_t amount_ )
1016  : _amount( amount_ )
1017 {
1018 }
1020 {
1021  image_.spread( _amount );
1022 }
1023 
1024 // Add a digital watermark to the image (based on second image)
1026  : _waterMark( waterMark_ )
1027 {
1028 }
1030 {
1031  image_.stegano( _waterMark );
1032 }
1033 
1034 // Create an image which appears in stereo when viewed with red-blue
1035 // glasses (Red image on left, blue on right)
1037  : _rightImage( rightImage_ )
1038 {
1039 }
1041 {
1042  image_.stereo( _rightImage );
1043 }
1044 
1045 // Color to use when drawing object outlines
1047  : _strokeColor( strokeColor_ )
1048 {
1049 }
1051 {
1052  image_.strokeColor( _strokeColor );
1053 }
1054 
1055 // Swirl image (image pixels are rotated by degrees)
1056 Magick::swirlImage::swirlImage( const double degrees_ )
1057  : _degrees( degrees_ )
1058 {
1059 }
1061 {
1062  image_.swirl( _degrees );
1063 }
1064 
1065 // Channel a texture on image background
1067  : _texture( texture_ )
1068 {
1069 }
1071 {
1072  image_.texture( _texture );
1073 }
1074 
1075 // Threshold image
1076 Magick::thresholdImage::thresholdImage( const double threshold_ )
1077  : _threshold( threshold_ )
1078 {
1079 }
1081 {
1082  image_.threshold( _threshold );
1083 }
1084 
1085 // Set image color to transparent
1087  : _color( color_ )
1088 {
1089 }
1091 {
1092  image_.transparent( _color );
1093 }
1094 
1095 // Trim edges that are the background color from the image
1097 {
1098 }
1100 {
1101  image_.trim( );
1102 }
1103 
1104 // Map image pixels to a sine wave
1105 Magick::waveImage::waveImage( const double amplitude_,
1106  const double wavelength_ )
1107  : _amplitude( amplitude_ ),
1108  _wavelength( wavelength_ )
1109 {
1110 }
1112 {
1113  image_.wave( _amplitude, _wavelength );
1114 }
1115 
1116 // resize image to specified size.
1118  : _geometry( geometry_ )
1119 {
1120 }
1122 {
1123  image_.resize( _geometry );
1124 }
1125 
1126 // Zoom image to specified size.
1128  : _geometry( geometry_ )
1129 {
1130 }
1132 {
1133  image_.zoom( _geometry );
1134 }
1135 
1136 //
1137 // Function object image attribute accessors
1138 //
1139 
1140 // Join images into a single multi-image file
1142  : _flag( flag_ )
1143 {
1144 }
1146 {
1147  image_.adjoin( _flag );
1148 }
1149 
1150 // Time in 1/100ths of a second which must expire before displaying
1151 // the next image in an animated sequence.
1153  : _delay( delay_ )
1154 {
1155 }
1157 {
1158  image_.animationDelay( _delay );
1159 }
1160 
1161 // Number of iterations to loop an animation (e.g. Netscape loop
1162 // extension) for.
1164  : _iterations( iterations_ )
1165 {
1166 }
1168 {
1169  image_.animationIterations( _iterations );
1170 }
1171 
1172 // Image background color
1174  : _color( color_ )
1175 {
1176 }
1178 {
1179  image_.backgroundColor( _color );
1180 }
1181 
1182 // Name of texture image to tile onto the image background
1183 Magick::backgroundTextureImage::backgroundTextureImage( const std::string &backgroundTexture_ )
1184  : _backgroundTexture( backgroundTexture_ )
1185 {
1186 }
1188 {
1189  image_.backgroundTexture( _backgroundTexture );
1190 }
1191 
1192 // Image border color
1194  : _color( color_ )
1195 {
1196 }
1198 {
1199  image_.borderColor( _color );
1200 }
1201 
1202 // Text bounding-box base color (default none)
1204  : _boxColor( boxColor_ ) { }
1205 
1207 {
1208  image_.boxColor( _boxColor );
1209 }
1210 
1212  const double y_,const double z_)
1213  : _x(x_),
1214  _y(y_),
1215  _z(z_)
1216 {
1217 }
1218 
1220 {
1221  image_.chromaBluePrimary(_x,_y,_z);
1222 }
1223 
1225  const double y_,const double z_)
1226  : _x(x_),
1227  _y(y_),
1228  _z(z_)
1229 {
1230 }
1231 
1233 {
1234  image_.chromaGreenPrimary(_x,_y,_z);
1235 }
1236 
1238  const double y_,const double z_)
1239  : _x(x_),
1240  _y(y_),
1241  _z(z_)
1242 {
1243 }
1244 
1246 {
1247  image_.chromaRedPrimary(_x,_y,_z);
1248 }
1249 
1251  const double y_,const double z_)
1252  : _x(x_),
1253  _y(y_),
1254  _z(z_)
1255 {
1256 }
1257 
1259 {
1260  image_.chromaWhitePoint(_x,_y,_z);
1261 }
1262 
1263 // Colors within this distance are considered equal
1265  : _fuzz( fuzz_ )
1266 {
1267 }
1269 {
1270  image_.colorFuzz( _fuzz );
1271 }
1272 
1273 // Color at colormap position index_
1275  const Color &color_ )
1276  : _index( index_ ),
1277  _color( color_ )
1278 {
1279 }
1281 {
1282  image_.colorMap( _index, _color );
1283 }
1284 
1285 // Composition operator to be used when composition is implicitly used
1286 // (such as for image flattening).
1287 Magick::composeImage::composeImage( const CompositeOperator compose_ )
1288  : _compose( compose_ )
1289 {
1290 }
1292 {
1293  image_.compose( _compose );
1294 }
1295 
1296 // Compression type
1297 Magick::compressTypeImage::compressTypeImage( const CompressionType compressType_ )
1298  : _compressType( compressType_ )
1299 {
1300 }
1302 {
1303  image_.compressType( _compressType );
1304 }
1305 
1306 // Vertical and horizontal resolution in pixels of the image
1308  : _point( point_ )
1309 {
1310 }
1312 {
1313  image_.density( _point );
1314 }
1315 
1316 // Image depth (bits allocated to red/green/blue components)
1317 Magick::depthImage::depthImage( const size_t depth_ )
1318  : _depth( depth_ )
1319 {
1320 }
1322 {
1323  image_.depth( _depth );
1324 }
1325 
1326 // Endianness (LSBEndian like Intel or MSBEndian like SPARC) for image
1327 // formats which support endian-specific options.
1328 Magick::endianImage::endianImage( const Magick::EndianType endian_ )
1329  : _endian( endian_ )
1330 {
1331 }
1333 {
1334  image_.endian( _endian );
1335 }
1336 
1337 // Image file name
1338 Magick::fileNameImage::fileNameImage( const std::string &fileName_ )
1339  : _fileName( fileName_ )
1340 {
1341 }
1343 {
1344  image_.fileName( _fileName );
1345 }
1346 
1347 // Filter to use when resizing image
1348 Magick::filterTypeImage::filterTypeImage( const FilterType filterType_ )
1349  : _filterType( filterType_ )
1350 {
1351 }
1353 {
1354  image_.filterType( _filterType );
1355 }
1356 
1357 // Text rendering font
1358 Magick::fontImage::fontImage( const std::string &font_ )
1359  : _font( font_ )
1360 {
1361 }
1363 {
1364  image_.font( _font );
1365 }
1366 
1367 // Font point size
1369  : _pointsize( pointsize_ )
1370 {
1371 }
1373 {
1374  image_.fontPointsize( _pointsize );
1375 }
1376 
1377 // GIF disposal method
1378 Magick::gifDisposeMethodImage::gifDisposeMethodImage( const DisposeType disposeMethod_ )
1379  : _disposeMethod( disposeMethod_ )
1380 {
1381 }
1383 {
1384  image_.gifDisposeMethod( _disposeMethod );
1385 }
1386 
1387 // Type of interlacing to use
1388 Magick::interlaceTypeImage::interlaceTypeImage( const InterlaceType interlace_ )
1389  : _interlace( interlace_ )
1390 {
1391 }
1393 {
1394  image_.interlaceType( _interlace );
1395 }
1396 
1397 // File type magick identifier (.e.g "GIF")
1398 Magick::magickImage::magickImage( const std::string &magick_ )
1399  : _magick( magick_ )
1400 {
1401 }
1403 {
1404  image_.magick( _magick );
1405 }
1406 
1407 // Image supports transparent color
1409  : _alphaFlag( alphaFlag_ )
1410 {
1411 }
1413 {
1414  image_.alpha( _alphaFlag );
1415 }
1416 
1417 // Transparent color
1419  : _matteColor( matteColor_ )
1420 {
1421 }
1423 {
1424  image_.matteColor( _matteColor );
1425 }
1426 
1427 // Indicate that image is black and white
1428 Magick::monochromeImage::monochromeImage( const bool monochromeFlag_ )
1429  : _monochromeFlag( monochromeFlag_ )
1430 {
1431 }
1433 {
1434  image_.monochrome( _monochromeFlag );
1435 }
1436 
1437 // Set pixel color at location x & y.
1439  const ssize_t y_,
1440  const Color &color_)
1441  : _x( x_ ),
1442  _y( y_ ),
1443  _color( color_ ) { }
1444 
1446 {
1447  image_.pixelColor( _x, _y, _color );
1448 }
1449 
1450 // Postscript page size.
1452  : _pageSize( pageSize_ )
1453 {
1454 }
1456 {
1457  image_.page( _pageSize );
1458 }
1459 
1460 // JPEG/MIFF/PNG compression level (default 75).
1461 Magick::qualityImage::qualityImage( const size_t quality_ )
1462  : _quality( quality_ )
1463 {
1464 }
1466 {
1467  image_.quality( _quality );
1468 }
1469 
1470 // Maximum number of colors to quantize to
1472  : _colors( colors_ )
1473 {
1474 }
1476 {
1477  image_.quantizeColors( _colors );
1478 }
1479 
1480 // Colorspace to quantize in.
1482  : _colorSpace( colorSpace_ )
1483 {
1484 }
1486 {
1487  image_.quantizeColorSpace( _colorSpace );
1488 }
1489 
1490 // Dither image during quantization (default true).
1492  : _ditherFlag( ditherFlag_ )
1493 {
1494 }
1496 {
1497  image_.quantizeDither( _ditherFlag );
1498 }
1499 
1500 // Quantization tree-depth
1502  : _treeDepth( treeDepth_ ) { }
1503 
1505 {
1506  image_.quantizeTreeDepth( _treeDepth );
1507 }
1508 
1509 // The type of rendering intent
1510 Magick::renderingIntentImage::renderingIntentImage( const Magick::RenderingIntent renderingIntent_ )
1511  : _renderingIntent( renderingIntent_ )
1512 {
1513 }
1515 {
1516  image_.renderingIntent( _renderingIntent );
1517 }
1518 
1519 // Units of image resolution
1520 Magick::resolutionUnitsImage::resolutionUnitsImage( const Magick::ResolutionType resolutionUnits_ )
1521  : _resolutionUnits( resolutionUnits_ )
1522 {
1523 }
1525 {
1526  image_.resolutionUnits( _resolutionUnits );
1527 }
1528 
1529 // Image scene number
1530 Magick::sceneImage::sceneImage( const size_t scene_ )
1531  : _scene( scene_ )
1532 {
1533 }
1535 {
1536  image_.scene( _scene );
1537 }
1538 
1539 // Width and height of a raw image
1541  : _geometry( geometry_ )
1542 {
1543 }
1545 {
1546  image_.size( _geometry );
1547 }
1548 
1549 // Splice the background color into the image.
1551  : _geometry( geometry_ )
1552 {
1553 }
1555 {
1556  image_.splice( _geometry );
1557 }
1558 
1559 // stripImage strips an image of all profiles and comments.
1561 {
1562 }
1564 {
1565  image_.strip( );
1566 }
1567 
1568 // Subimage of an image sequence
1569 Magick::subImageImage::subImageImage( const size_t subImage_ )
1570  : _subImage( subImage_ )
1571 {
1572 }
1574 {
1575  image_.subImage( _subImage );
1576 }
1577 
1578 // Number of images relative to the base image
1579 Magick::subRangeImage::subRangeImage( const size_t subRange_ )
1580  : _subRange( subRange_ )
1581 {
1582 }
1584 {
1585  image_.subRange( _subRange );
1586 }
1587 
1588 // Anti-alias Postscript and TrueType fonts (default true)
1590  : _flag( flag_ )
1591 {
1592 }
1594 {
1595  image_.textAntiAlias( _flag );
1596 }
1597 
1598 // Image storage type
1599 Magick::typeImage::typeImage( const Magick::ImageType type_ )
1600  : _type( type_ )
1601 {
1602 }
1604 {
1605  image_.type( _type );
1606 }
1607 
1608 // Print detailed information about the image
1610  : _verbose( verbose_ )
1611 {
1612 }
1614 {
1615  image_.verbose( _verbose );
1616 }
1617 
1618 // X11 display to display to, obtain fonts from, or to capture image
1619 // from
1620 Magick::x11DisplayImage::x11DisplayImage( const std::string &display_ )
1621  : _display( display_ )
1622 {
1623 }
1625 {
1626  image_.x11Display( _display );
1627 }
modulateImage(const double brightness_, const double saturation_, const double hue_)
Definition: STL.cpp:694
solarizeImage(const double factor_)
Definition: STL.cpp:1005
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:3238
void swirl(const double degrees_)
Definition: Image.cpp:4608
void operator()(Image &image_) const
Definition: STL.cpp:1145
void operator()(Image &image_) const
Definition: STL.cpp:1060
void operator()(Image &image_) const
Definition: STL.cpp:1009
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:1358
void operator()(Image &image_) const
Definition: STL.cpp:347
sharpenImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:971
void textAntiAlias(const bool flag_)
Definition: Image.cpp:1533
void splice(const Geometry &geometry_)
Definition: Image.cpp:4511
void resize(const Geometry &geometry_)
Definition: Image.cpp:4162
void operator()(Image &image_) const
Definition: STL.cpp:1029
commentImage(const std::string &comment_)
Definition: STL.cpp:225
textAntiAliasImage(const bool flag_)
Definition: STL.cpp:1589
void operator()(Image &image_) const
Definition: STL.cpp:462
void modulate(const double brightness_, const double saturation_, const double hue_)
Definition: Image.cpp:3601
backgroundColorImage(const Color &color_)
Definition: STL.cpp:1173
void operator()(Image &image_) const
Definition: STL.cpp:1311
rotateImage(const double degrees_)
Definition: STL.cpp:897
void annotate(const std::string &text_, const Geometry &location_)
Definition: Image.cpp:1846
animationIterationsImage(const size_t iterations_)
Definition: STL.cpp:1163
void operator()(Image &image_) const
Definition: STL.cpp:1050
backgroundTextureImage(const std::string &backgroundTexture_)
Definition: STL.cpp:1183
void chromaGreenPrimary(const double x_, const double y_, const double z_)
Definition: Image.cpp:2243
void magick(const std::string &magick_)
Definition: Image.cpp:1130
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:1770
void operator()(Image &image_) const
Definition: STL.cpp:976
void x11Display(const std::string &display_)
Definition: Image.cpp:1691
void charcoal(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:2188
void operator()(Image &image_) const
Definition: STL.cpp:1090
void blur(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:2095
void operator()(Image &image_) const
Definition: STL.cpp:1099
qualityImage(const size_t quality_)
Definition: STL.cpp:1461
void contrast(const bool sharpen_)
Definition: Image.cpp:2585
alphaImage(const unsigned int alpha_)
Definition: STL.cpp:744
resizeImage(const Geometry &geometry_)
Definition: STL.cpp:1117
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:1080
void medianFilter(const double radius_=0.0)
Definition: Image.cpp:3578
void operator()(Image &image_) const
Definition: STL.cpp:400
void enhance(void)
Definition: Image.cpp:2865
void chop(const Geometry &geometry_)
Definition: Image.cpp:2213
void operator()(Image &image_) const
Definition: STL.cpp:150
void composite(const Image &compositeImage_, const Geometry &offset_, const CompositeOperator compose_=InCompositeOp)
Definition: Image.cpp:2523
void operator()(Image &image_) const
Definition: STL.cpp:1445
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:1573
void negate(const bool grayscale_=false)
Definition: Image.cpp:3730
size_t depth(void) const
Definition: STL.cpp:828
void operator()(Image &image_) const
Definition: STL.cpp:1402
void raise(const Geometry &geometry_=raiseGeometryDefault, const bool raisedFlag_=false)
Definition: Image.cpp:3993
void operator()(Image &image_) const
Definition: STL.cpp:1554
contrastImage(const size_t sharpen_)
Definition: STL.cpp:261
void renderingIntent(const RenderingIntent renderingIntent_)
Definition: Image.cpp:1326
void crop(const Geometry &geometry_)
Definition: Image.cpp:2655
void operator()(Image &image_) const
Definition: STL.cpp:760
alphaFlagImage(const bool alphaFlag_)
Definition: STL.cpp:1408
minifyImage(void)
Definition: STL.cpp:685
void operator()(Image &image_) const
Definition: STL.cpp:1070
void density(const Point &density_)
Definition: Image.cpp:652
void operator()(Image &image_) const
Definition: STL.cpp:1332
void operator()(Image &image_) const
Definition: STL.cpp:1524
densityImage(const Point &point_)
Definition: STL.cpp:1307
frameImage(const Geometry &geometry_=frameGeometryDefault)
Definition: STL.cpp:531
void operator()(Image &image_) const
Definition: STL.cpp:1268
void operator()(Image &image_) const
Definition: STL.cpp:172
void subRange(const size_t subRange_)
Definition: Image.cpp:1522
void comment(const std::string &comment_)
Definition: Image.cpp:594
void operator()(Image &image_) const
Definition: STL.cpp:1583
void operator()(Image &image_) const
Definition: STL.cpp:1603
adaptiveBlurImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:17
sizeImage(const Geometry &geometry_)
Definition: STL.cpp:1540
void operator()(Image &image_) const
Definition: STL.cpp:891
void operator()(Image &image_) const
Definition: STL.cpp:1245
shadowImage(const double percent_opacity_=80, const double sigma_=0.5, const ssize_t x_=5, const ssize_t y_=5)
Definition: STL.cpp:956
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:1599
void operator()(Image &image_) const
Definition: STL.cpp:1040
subImageImage(const size_t subImage_)
Definition: STL.cpp:1569
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:4384
void operator()(Image &image_) const
Definition: STL.cpp:1593
composeImage(const CompositeOperator compose_)
Definition: STL.cpp:1287
void operator()(Image &image_) const
Definition: STL.cpp:679
Geometry density(void) const
Definition: STL.cpp:815
colorFuzzImage(const double fuzz_)
Definition: STL.cpp:1264
void operator()(Image &image_) const
Definition: STL.cpp:391
void equalize(void)
Definition: Image.cpp:2876
void zoom(const Geometry &geometry_)
Definition: Image.cpp:4982
void page(const Geometry &pageSize_)
Definition: Image.cpp:1234
void operator()(Image &image_) const
Definition: STL.cpp:219
void strokeColor(const Color &strokeColor_)
Definition: Image.cpp:1391
magickImage(const std::string &magick_)
Definition: STL.cpp:1398
swirlImage(const double degrees_)
Definition: STL.cpp:1056
quantizeImage(const bool measureError_=false)
Definition: STL.cpp:766
void operator()(Image &image_) const
Definition: STL.cpp:1382
pixelColorImage(const ::ssize_t x_, const ::ssize_t y_, const Color &color_)
Definition: STL.cpp:1438
filterTypeImage(const FilterType filterType_)
Definition: STL.cpp:1348
void operator()(Image &image_) const
Definition: STL.cpp:363
void oilPaint(const double radius_=0.0, const double sigma=1.0)
Definition: Image.cpp:3757
void operator()(Image &image_) const
Definition: STL.cpp:748
sceneImage(const size_t scene_)
Definition: STL.cpp:1530
void floodFillTexture(const Geometry &point_, const Image &texture_, const bool invert_=false)
Definition: Image.cpp:3070
shadeImage(const double azimuth_=30, const double elevation_=30, const bool colorShading_=false)
Definition: STL.cpp:942
void operator()(Image &image_) const
Definition: STL.cpp:1495
isValidImage(const bool isValid_)
Definition: STL.cpp:619
void spread(const double amount_=3.0)
Definition: Image.cpp:4540
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:840
void operator()(Image &image_) const
Definition: STL.cpp:229
spliceImage(const Geometry &geometry_)
Definition: STL.cpp:1550
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:2418
void pixelColor(const ::ssize_t x_, const ::ssize_t y_, const Color &color_)
void operator()(Image &image_) const
Definition: STL.cpp:1206
void operator()(Image &image_) const
Definition: STL.cpp:255
void verbose(const bool verboseFlag_)
Definition: Image.cpp:1666
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:2846
void magnify(void)
Definition: Image.cpp:3544
fileNameImage(const std::string &fileName_)
Definition: STL.cpp:1338
pageImage(const Geometry &pageSize_)
Definition: STL.cpp:1451
void segment(const double clusterThreshold_=1.0, const double smoothingThreshold_=1.5)
Definition: Image.cpp:4290
fontPointsizeImage(const size_t pointsize_)
Definition: STL.cpp:1368
void reduceNoise(void)
Definition: Image.cpp:4123
compressTypeImage(const CompressionType compressType_)
Definition: STL.cpp:1297
void stegano(const Image &watermark_)
Definition: Image.cpp:4556
void sharpen(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:4410
endianImage(const EndianType endian_)
Definition: STL.cpp:1328
affineTransformImage(const DrawableAffine &affine_)
Definition: STL.cpp:56
void operator()(Image &image_) const
Definition: STL.cpp:1544
void operator()(Image &image_) const
Definition: STL.cpp:1534
void floodFillAlpha(const ::ssize_t x_, const ::ssize_t y_, const unsigned int alpha_, const bool invert_=false)
void trim(void)
Definition: Image.cpp:4771
void colorFuzz(const double fuzz_)
Definition: Image.cpp:526
floodFillTextureImage(const ::ssize_t x_, const ::ssize_t y_, const Image &texture_, const bool invert_=false)
void operator()(Image &image_) const
Definition: STL.cpp:1167
void solarize(const double factor_=50.0)
Definition: Image.cpp:4487
void stereo(const Image &rightImage_)
Definition: Image.cpp:4567
void quantize(const bool measureError_=false)
Definition: Image.cpp:3979
void boxColor(const Color &boxColor_)
Definition: Image.cpp:456
void operator()(Image &image_) const
Definition: STL.cpp:1131
void operator()(Image &image_) const
Definition: STL.cpp:1362
void operator()(Image &image_) const
Definition: STL.cpp:1504
chopImage(const Geometry &geometry_)
Definition: STL.cpp:156
void frame(const Geometry &geometry_=frameGeometryDefault)
Definition: Image.cpp:3147
void operator()(Image &image_) const
Definition: STL.cpp:783
colorMapImage(const size_t index_, const Color &color_)
Definition: STL.cpp:1274
Geometry size(void) const
Definition: STL.cpp:841
void quantizeTreeDepth(const size_t treeDepth_)
Definition: Image.cpp:1304
void operator()(Image &image_) const
Definition: STL.cpp:965
void operator()(Image &image_) const
Definition: STL.cpp:139
void flip(void)
Definition: Image.cpp:2985
void backgroundTexture(const std::string &backgroundTexture_)
Definition: Image.cpp:392
void shave(const Geometry &geometry_)
Definition: Image.cpp:4435
void operator()(Image &image_) const
Definition: STL.cpp:1422
borderColorImage(const Color &color_)
Definition: STL.cpp:1193
fillColorImage(const Color &fillColor_)
Definition: STL.cpp:387
void borderColor(const Color &color_)
Definition: Image.cpp:428
void font(const std::string &font_)
Definition: Image.cpp:851
quantizeColorSpaceImage(const ColorspaceType colorSpace_)
Definition: STL.cpp:1481
void operator()(Image &image_) const
Definition: STL.cpp:337
void fontPointsize(const double pointSize_)
Definition: Image.cpp:873
void operator()(Image &image_) const
Definition: STL.cpp:1613
class MagickPPExport Geometry
Definition: Geometry.h:19
void operator()(Image &image_) const
Definition: STL.cpp:1156
void operator()(Image &image_) const
Definition: STL.cpp:1321
void scene(const size_t scene_)
Definition: Image.cpp:1356
rollImage(const Geometry &roll_)
Definition: STL.cpp:880
void edge(const double radius_=0.0)
Definition: Image.cpp:2835
void operator()(Image &image_) const
Definition: STL.cpp:1624
strokeColorImage(const Color &strokeColor_)
Definition: STL.cpp:1046
quantizeColorsImage(const size_t colors_)
Definition: STL.cpp:1471
void operator()(Image &image_) const
Definition: STL.cpp:1475
void operator()(Image &image_) const
Definition: STL.cpp:911
void quality(const size_t quality_)
Definition: Image.cpp:1247
void gifDisposeMethod(const DisposeType disposeMethod_)
void operator()(Image &image_) const
Definition: STL.cpp:546
void texture(const Image &texture_)
Definition: Image.cpp:4627
void fillColor(const Color &fillColor_)
Definition: Image.cpp:785
void endian(const EndianType endian_)
Definition: Image.cpp:716
void operator()(Image &image_) const
Definition: STL.cpp:50
sampleImage(const Geometry &geometry_)
Definition: STL.cpp:907
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:4397
void operator()(Image &image_) const
Definition: STL.cpp:1392
void minify(void)
Definition: Image.cpp:3590
void scale(const Geometry &geometry_)
Definition: Image.cpp:4268
zoomImage(const Geometry &geometry_)
Definition: STL.cpp:1127
void operator()(Image &image_) const
Definition: STL.cpp:1019
colorSpaceImage(ColorspaceType colorSpace_)
Definition: STL.cpp:215
void size(const Geometry &geometry_)
Definition: Image.cpp:1367
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:854
textureImage(const Image &texture_)
Definition: STL.cpp:1066
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:1291
interlaceTypeImage(const InterlaceType interlace_)
Definition: STL.cpp:1388
void draw(const Drawable &drawable_)
Definition: Image.cpp:2786
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:1620
void label(const std::string &label_)
Definition: Image.cpp:1096
void operator()(Image &image_) const
Definition: STL.cpp:1412
void operator()(Image &image_) const
Definition: STL.cpp:921
void operator()(Image &image_) const
Definition: STL.cpp:591
depthImage(const size_t depth_)
Definition: STL.cpp:1317
void operator()(Image &image_) const
Definition: STL.cpp:196
void matteColor(const Color &matteColor_)
Definition: Image.cpp:330
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:950
void operator()(Image &image_) const
Definition: STL.cpp:998
void implode(const double factor_)
Definition: Image.cpp:3357
blurImage(const double radius_=1, const double sigma_=0.5)
Definition: STL.cpp:114
transparentImage(const Color &color_)
Definition: STL.cpp:1086
void operator()(Image &image_) const
Definition: STL.cpp:1455
shearImage(const double xShearAngle_, const double yShearAngle_)
Definition: STL.cpp:992
boxColorImage(const Color &boxColor_)
Definition: STL.cpp:1203
chromaGreenPrimaryImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1224
trimImage(void)
Definition: STL.cpp:1096
void operator()(Image &image_) const
Definition: STL.cpp:688
void interlaceType(const InterlaceType interlace_)
Definition: Image.cpp:1012
void colorSpace(const ColorspaceType colorSpace_)
Definition: Image.cpp:559
magnifyImage(void)
Definition: STL.cpp:653
void chromaBluePrimary(const double x_, const double y_, const double z_)
Definition: Image.cpp:2227
void operator()(Image &image_) const
Definition: STL.cpp:1372
void operator()(Image &image_) const
Definition: STL.cpp:936
void wave(const double amplitude_=25.0, const double wavelength_=150.0)
Definition: Image.cpp:4837
colorMatrixImage(const size_t order_, const double *color_matrix_)
Definition: STL.cpp:203
double gamma(void) const
Definition: Image.cpp:946
void threshold(const double threshold_)
Definition: Image.cpp:4635
void operator()(Image &image_) const
Definition: STL.cpp:416
verboseImage(const bool verbose_)
Definition: STL.cpp:1609
void operator()(Image &image_) const
Definition: STL.cpp:209
void roll(const Geometry &roll_)
Definition: Image.cpp:4187
void operator()(Image &image_) const
Definition: STL.cpp:60
steganoImage(const Image &waterMark_)
Definition: STL.cpp:1025
stereoImage(const Image &rightImage_)
Definition: STL.cpp:1036
embossImage(void)
Definition: STL.cpp:353
void operator()(Image &image_) const
Definition: STL.cpp:612
spreadImage(const size_t amount_=3)
Definition: STL.cpp:1015
void strip(void)
Definition: Image.cpp:4578
void operator()(Image &image_) const
Definition: STL.cpp:1258
void operator()(Image &image_) const
Definition: STL.cpp:1177
void adaptiveBlur(const double radius_=0.0, const double sigma_=1.0)
Definition: Image.cpp:1712
void operator()(Image &image_) const
Definition: STL.cpp:1187
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:4698
void inverseFourierTransform(const Image &phase_)
Definition: Image.cpp:3369
void colorize(const unsigned int alpha_, const Color &penColor_)
Definition: Image.cpp:2346
stripImage(void)
Definition: STL.cpp:1560
void operator()(Image &image_) const
Definition: STL.cpp:1465
void operator()(Image &image_) const
Definition: STL.cpp:525
void cdl(const std::string &cdl_)
Definition: Image.cpp:2169
void alpha(const bool alphaFlag_)
Definition: Image.cpp:305
void operator()(Image &image_) const
Definition: STL.cpp:901
void operator()(Image &image_) const
Definition: STL.cpp:381
waveImage(const double amplitude_=25.0, const double wavelength_=150.0)
Definition: STL.cpp:1105
void distort(const DistortMethod method_, const size_t numberArguments_, const double *arguments_, const bool bestfit_=false)
Definition: Image.cpp:2773
void animationDelay(const size_t delay_)
Definition: Image.cpp:353
void isValid(const bool isValid_)
Definition: Image.cpp:1075
void border(const Geometry &geometry_=borderGeometryDefault)
Definition: Image.cpp:2120
matteColorImage(const Color &matteColor_)
Definition: STL.cpp:1418
void operator()(Image &image_) const
Definition: STL.cpp:275
void addNoise(const NoiseType noiseType_, const double attenuate_=1.0)
Definition: Image.cpp:1784
void sample(const Geometry &geometry_)
Definition: Image.cpp:4246
inverseFourierTransformImage(const Image &phaseImage_)
Definition: STL.cpp:608
flipImage(void)
Definition: STL.cpp:397
void affineTransform(const DrawableAffine &affine)
Definition: Image.cpp:1809
void compose(const CompositeOperator compose_)
Definition: Image.cpp:619
edgeImage(const double radius_=0.0)
Definition: STL.cpp:343
void subImage(const size_t subImage_)
Definition: Image.cpp:1511
void operator()(Image &image_) const
Definition: STL.cpp:1352
chromaRedPrimaryImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1237
monochromeImage(const bool monochromeFlag_)
Definition: STL.cpp:1428
shaveImage(const Geometry &geometry_)
Definition: STL.cpp:982
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:1579
renderingIntentImage(const RenderingIntent renderingIntent_)
Definition: STL.cpp:1510
cdlImage(const std::string &cdl_)
Definition: STL.cpp:168
void chromaRedPrimary(const double x_, const double y_, const double z_)
Definition: Image.cpp:2259
ReadOptions(void)
Definition: STL.cpp:788
gifDisposeMethodImage(const DisposeType disposeMethod_)
Definition: STL.cpp:1378
void resolutionUnits(const ResolutionType resolutionUnits_)
Definition: Image.cpp:1338
void operator()(Image &image_) const
Definition: STL.cpp:1563
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:917
void quantizeColors(const size_t colors_)
Definition: Image.cpp:1259
MagickPPExport void CloneString(char **destination_, const std::string &source_)
Definition: Functions.cpp:23
quantizeDitherImage(const bool ditherFlag_)
Definition: STL.cpp:1491
void chromaWhitePoint(const double x_, const double y_, const double z_)
Definition: Image.cpp:2275
void operator()(Image &image_) const
Definition: STL.cpp:581
MagickCore::ImageInfo * imageInfo(void)
Definition: STL.cpp:859
oilPaintImage(const double radius_=3)
Definition: STL.cpp:729
Definition: Blob.h:15
void operator()(Image &image_) const
Definition: STL.cpp:1301
chromaWhitePointImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1250
resolutionUnitsImage(const ResolutionType resolutionUnits_)
Definition: STL.cpp:1520
void operator()(Image &image_) const
Definition: STL.cpp:1121
void operator()(Image &image_) const
Definition: STL.cpp:713
chromaBluePrimaryImage(const double x_, const double y_, const double z_)
Definition: STL.cpp:1211
void floodFillColor(const Geometry &point_, const Color &fillColor_, const bool invert_=false)
Definition: Image.cpp:3032
void flop(void)
Definition: Image.cpp:3108
void despeckle(void)
Definition: Image.cpp:2755
void operator()(Image &image_) const
Definition: STL.cpp:1232
void channel(const ChannelType channel_)
Definition: Image.cpp:2177
void operator()(Image &image_) const
Definition: STL.cpp:1197
void operator()(Image &image_) const
Definition: STL.cpp:1219
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:3749
void operator()(Image &image_) const
Definition: STL.cpp:265
void animationIterations(const size_t iterations_)
Definition: Image.cpp:364
void operator()(Image &image_) const
Definition: STL.cpp:1111
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:375
thresholdImage(const double threshold_)
Definition: STL.cpp:1076
void quantizeDither(const bool ditherFlag_)
Definition: Image.cpp:1282
void operator()(Image &image_) const
Definition: STL.cpp:656
void opaque(const Color &opaqueColor_, const Color &penColor_, const bool invert_=false)
Definition: Image.cpp:3768
void colorMap(const size_t index_, const Color &color_)
Definition: Image.cpp:2378
segmentImage(const double clusterThreshold_=1.0, const double smoothingThreshold_=1.5)
Definition: STL.cpp:930
void depth(const size_t depth_)
Definition: Image.cpp:692
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:1501
negateImage(const bool grayscale_=false)
Definition: STL.cpp:709
void cycleColormap(const ::ssize_t amount_)
Definition: Image.cpp:2669
void operator()(Image &image_) const
Definition: STL.cpp:986
void level(const double blackPoint_, const double whitePoint_, const double gamma_=1.0)
Definition: Image.cpp:3412
void operator()(Image &image_) const
Definition: STL.cpp:1514
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:758
void operator()(Image &image_) const
Definition: STL.cpp:1342
enhanceImage(void)
Definition: STL.cpp:369
void type(const ImageType type_)
Definition: Image.cpp:1657
void quantizeColorSpace(const ColorspaceType colorSpace_)
Definition: Image.cpp:1270
void compressType(const CompressionType compressType_)
Definition: Image.cpp:629
gammaImage(const double gamma_)
Definition: STL.cpp:552
adjoinImage(const bool flag_)
Definition: STL.cpp:1141
void haldClut(const Image &clutImage_)
Definition: Image.cpp:3325
void operator()(Image &image_) const
Definition: STL.cpp:1485
void shear(const double xShearAngle_, const double yShearAngle_)
Definition: Image.cpp:4449
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:873
animationDelayImage(const size_t delay_)
Definition: STL.cpp:1152
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:1190
void operator()(Image &image_) const
Definition: STL.cpp:1432
void operator()(Image &image_) const
Definition: STL.cpp:1280
void rotate(const double degrees_)
Definition: Image.cpp:4210
void map(const Image &mapImage_, const bool dither_=false)
Definition: Image.cpp:3555
void operator()(Image &image_) const
Definition: STL.cpp:108