⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.216
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
include
/
ImageMagick-6
/
Magick++
/
Edit File: ChannelMoments.h
// This may look like C code, but it is really -*- C++ -*- // // Copyright Dirk Lemstra 2014-2015 // // Definition of channel moments. // #if !defined (Magick_ChannelMoments_header) #define Magick_ChannelMoments_header #include "Magick++/Include.h" #include <vector> namespace Magick { class Image; class MagickPPExport ChannelMoments { public: // Default constructor ChannelMoments(void); // Copy constructor ChannelMoments(const ChannelMoments &channelMoments_); // Destroy channel moments ~ChannelMoments(void); // // Implemementation methods // ChannelMoments(const ChannelType channel_, const MagickCore::ChannelMoments *channelMoments_); // X position of centroid double centroidX(void) const; // Y position of centroid double centroidY(void) const; // The channel ChannelType channel(void) const; // X position of ellipse axis double ellipseAxisX(void) const; // Y position of ellipse axis double ellipseAxisY(void) const; // Ellipse angle double ellipseAngle(void) const; // Ellipse eccentricity double ellipseEccentricity(void) const; // Ellipse intensity double ellipseIntensity(void) const; // Hu invariants (valid range for index is 0-7) double huInvariants(const size_t index_) const; private: std::vector<double> _huInvariants; ChannelType _channel; double _centroidX; double _centroidY; double _ellipseAxisX; double _ellipseAxisY; double _ellipseAngle; double _ellipseEccentricity; double _ellipseIntensity; }; class MagickPPExport ImageMoments { public: // Default constructor ImageMoments(void); // Copy constructor ImageMoments(const ImageMoments &imageMoments_); // Destroy image moments ~ImageMoments(void); // Returns the moments for the specified channel ChannelMoments channel(const ChannelType channel_=CompositeChannels) const; // // Implemementation methods // ImageMoments(const Image &image_); private: std::vector<ChannelMoments> _channels; }; } #endif // Magick_ChannelMoments_header
Simpan