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