⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.h

📁 下载来的一个看图软件的源代码
💻 H
📖 第 1 页 / 共 4 页
字号:
				      const Image &texture_,				      const Color &borderColor_ );        // Flop image (reflect each scanline in the horizontal direction)    void            flop ( void );        // Frame image    void            frame ( const Geometry &geometry_ = frameGeometryDefault );    void            frame ( const unsigned int width_,                            const unsigned int height_,			    const int innerBevel_ = 6,                            const int outerBevel_ = 6 );        // Gamma correct image    void            gamma ( const double gamma_ );    void            gamma ( const double gammaRed_,			    const double gammaGreen_,			    const double gammaBlue_ );    // Gaussian blur image    // The number of neighbor pixels to be included in the convolution    // mask is specified by 'width_'. The standard deviation of the    // gaussian bell curve is specified by 'sigma_'.    void            gaussianBlur ( const double width_, const double sigma_ );        // Implode image (special effect)    void            implode ( const double factor_ );        // Label image    void            label ( const std::string &label_ );    // Level image. Adjust the levels of the image by scaling the    // colors falling between specified white and black points to the    // full available quantum range. The parameters provided represent    // the black, mid (gamma), and white points.  The black point    // specifies the darkest color in the image. Colors darker than    // the black point are set to zero. Mid point (gamma) specifies a    // gamma correction to apply to the image. White point specifies    // the lightest color in the image.  Colors brighter than the    // white point are set to the maximum quantum value. The black and    // white point have the valid range 0 to MaxRGB while mid (gamma)    // has a useful range of 0 to ten.    void            level ( const double black_point,                            const double white_point,                            const double mid_point=1.0 );    // Level image channel. Adjust the levels of the image channel by    // scaling the values falling between specified white and black    // points to the full available quantum range. The parameters    // provided represent the black, mid (gamma), and white points.    // The black point specifies the darkest color in the    // image. Colors darker than the black point are set to zero. Mid    // point (gamma) specifies a gamma correction to apply to the    // image. White point specifies the lightest color in the image.    // Colors brighter than the white point are set to the maximum    // quantum value. The black and white point have the valid range 0    // to MaxRGB while mid (gamma) has a useful range of 0 to ten.    void            levelChannel ( const ChannelType channel,                                   const double black_point,                                   const double white_point,                                   const double mid_point=1.0 );    // Magnify image by integral size    void            magnify ( void );        // Remap image colors with closest color from reference image    void            map ( const Image &mapImage_ ,                          const bool dither_ = false );        // Floodfill designated area with replacement opacity value    void            matteFloodfill ( const Color &target_ ,				     const unsigned int opacity_,				     const int x_, const int y_,				     const PaintMethod method_ );    // Filter image by replacing each pixel component with the median    // color in a circular neighborhood    void            medianFilter ( const double radius_ = 0.0 );        // Reduce image by integral size    void            minify ( void );        // Modulate percent hue, saturation, and brightness of an image.    // Modulation of saturation and brightness is as a ratio of the    // current value (1.0 for no change). Modulation of hue is an    // absolute rotation of -180 degrees to +180 degrees from the    // current position corresponding to an argument range of 0 to 2.0    // (1.0 for no change).    void            modulate ( const double brightness_,			       const double saturation_,			       const double hue_ );        // Negate colors in image.  Set grayscale to only negate grayscale    // values in image.    void            negate ( const bool grayscale_ = false );        // Normalize image (increase contrast by normalizing the pixel    // values to span the full range of color values)    void            normalize ( void );        // Oilpaint image (image looks like oil painting)    void            oilPaint ( const double radius_ = 3.0 );    // Set or attenuate the opacity channel in the image. If the image    // pixels are opaque then they are set to the specified opacity    // value, otherwise they are blended with the supplied opacity    // value.  The value of opacity_ ranges from 0 (completely opaque)    // to MaxRGB. The defines OpaqueOpacity and TransparentOpacity are    // available to specify completely opaque or completely    // transparent, respectively.    void            opacity ( const unsigned int opacity_ );    // Change color of opaque pixel to specified pen color.    void            opaque ( const Color &opaqueColor_,			     const Color &penColor_ );    // Ping is similar to read except only enough of the image is read    // to determine the image columns, rows, and filesize.  Access the    // columns(), rows(), and fileSize() attributes after invoking    // ping.  The image data is not valid after calling ping.    void            ping ( const std::string &imageSpec_ );        // Ping is similar to read except only enough of the image is read    // to determine the image columns, rows, and filesize.  Access the    // columns(), rows(), and fileSize() attributes after invoking    // ping.  The image data is not valid after calling ping.    void            ping ( const Blob &blob_ );    // Quantize image (reduce number of colors)    void            quantize ( const bool measureError_ = false );    // Apply an arithmetic or bitwise operator to the image pixel quantums.    void            quantumOperator ( const ChannelType channel_,                                      const QuantumOperator operator_,                                      Quantum rvalue_);    void            quantumOperator ( const int x_,const int y_,                                      const unsigned int columns_,                                      const unsigned int rows_,                                      const ChannelType channel_,                                      const QuantumOperator operator_,                                      const Quantum rvalue_);    // Execute a named process module using an argc/argv syntax similar to    // that accepted by a C 'main' routine. An exception is thrown if the    // requested process module doesn't exist, fails to load, or fails during    // execution.    void            process ( std::string name_,                              const int argc_,                              char **argv_ );    // Raise image (lighten or darken the edges of an image to give a    // 3-D raised or lowered effect)    void            raise ( const Geometry &geometry_ = raiseGeometryDefault,			    const bool raisedFlag_ = false );        // Read single image frame into current object    void            read ( const std::string &imageSpec_ );    // Read single image frame of specified size into current object    void            read ( const Geometry &size_,			   const std::string &imageSpec_ );    // Read single image frame from in-memory BLOB    void            read ( const Blob        &blob_ );    // Read single image frame of specified size from in-memory BLOB    void            read ( const Blob        &blob_,			   const Geometry    &size_ );    // Read single image frame of specified size and depth from    // in-memory BLOB    void            read ( const Blob         &blob_,			   const Geometry     &size_,			   const unsigned int depth_ );    // Read single image frame of specified size, depth, and format    // from in-memory BLOB    void            read ( const Blob         &blob_,			   const Geometry     &size_,			   const unsigned int depth_,			   const std::string  &magick_ );    // Read single image frame of specified size, and format from    // in-memory BLOB    void            read ( const Blob         &blob_,			   const Geometry     &size_,			   const std::string  &magick_ );    // Read single image frame from an array of raw pixels, with    // specified storage type (ConstituteImage), e.g.    //    image.read( 640, 480, "RGB", 0, pixels );    void            read ( const unsigned int width_,                           const unsigned int height_,                           const std::string &map_,                           const StorageType  type_,                           const void        *pixels_ );    // Reduce noise in image using a noise peak elimination filter    void            reduceNoise ( void );    void            reduceNoise ( const double order_ );        // Roll image (rolls image vertically and horizontally) by specified    // number of columnms and rows)    void            roll ( const Geometry &roll_ );    void            roll ( const unsigned int columns_,			   const unsigned int rows_ );        // Rotate image counter-clockwise by specified number of degrees.    void            rotate ( const double degrees_ );        // Resize image by using pixel sampling algorithm    void            sample ( const Geometry &geometry_ );        // Resize image by using simple ratio algorithm    void            scale ( const Geometry &geometry_ );        // Segment (coalesce similar image components) by analyzing the    // histograms of the color components and identifying units that    // are homogeneous with the fuzzy c-means technique.  Also uses    // QuantizeColorSpace and Verbose image attributes    void            segment ( const double clusterThreshold_ = 1.0, 			      const double smoothingThreshold_ = 1.5 );        // Shade image using distant light source    void            shade ( const double azimuth_ = 30,			    const double elevation_ = 30,			    const bool   colorShading_ = false );        // Sharpen pixels in image    // The radius_ parameter specifies the radius of the Gaussian, in    // pixels, not counting the center pixel.  The sigma_ parameter    // specifies the standard deviation of the Laplacian, in pixels.    void            sharpen ( const double radius_ = 0.0,                              const double sigma_ = 1.0 );    // Shave pixels from image edges.    void            shave ( const Geometry &geometry_ );        // Shear image (create parallelogram by sliding image by X or Y axis)    void            shear ( const double xShearAngle_,			    const double yShearAngle_ );        // Solarize image (similar to effect seen when exposing a    // photographic film to light during the development process)    void            solarize ( const double factor_ = 50.0 );        // Spread pixels randomly within image by specified ammount    void            spread ( const unsigned int amount_ = 3 );        // Add a digital watermark to the image (based on second image)    void            stegano ( const Image &watermark_ );        // Create an image which appears in stereo when viewed with    // red-blue glasses (Red image on left, blue on right)    void            stereo ( const Image &rightImage_ );        // Swirl image (image pixels are rotated by degrees)    void            swirl ( const double degrees_ );        // Channel a texture on image background    void            texture ( const Image &texture_ );        // Threshold image    void            threshold ( const double threshold_ );        // Transform image based on image and crop geometries    // Crop geometry is optional    void            transform ( const Geometry &imageGeometry_ );    void            transform ( const Geometry &imageGeometry_,				const Geometry &cropGeometry_  );    // Add matte image to image, setting pixels matching color to    // transparent    void            transparent ( const Color &color_ );        // Trim edges that are the background color from the image    void            trim ( void );    // Image representation type (also see type attribute)    //   Available types:    //    Bilevel        Grayscale       GrayscaleMatte    //    Palette        PaletteMatte    TrueColor    //    TrueColorMatte ColorSeparation ColorSeparationMatte    void            type ( const ImageType type_ );    // Replace image with a sharpened version of the original image    // using the unsharp mask algorithm.    //  radius_    //    the radius of the Gaussian, in pixels, not counting the    //    center pixel.    //  sigma_    //    the standard deviation of the Gaussian, in pixels.    //  amount_    //    the percentage of the difference between the original and    //    the blur image that is added back into the original.    // threshold_    //   the threshold in pixels needed to apply the diffence amount.    void            unsharpmask ( const double radius_,                                  const double sigma_,                                  const double amount_,                                  const double threshold_ );    // Map image pixels to a sine wave    void            wave ( const double amplitude_ = 25.0,                           const double wavelength_ = 150.0 );        // Write single image frame to a file    void            write ( const std::string &imageSpec_ );    // Write single image frame to in-memory BLOB, with optional    // format and adjoin parameters.    void            write ( Blob *blob_ );    void            write ( Blob *blob_,			    const std::string &magick_ );    void            write ( Blob *blob_,			    const std::string &magick_,			    const unsigned int depth_ );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -