Skip to content
Snippets Groups Projects
Select Git revision
  • 2de50543891ec2fb54b78e4e93a19302bd7614fb
  • main default protected
  • fix/missing-API-documentation-for-python-modules
  • fix/delete_mingw
  • feature/new_systems_methodology
  • fix/missing-api-documentation
  • feature/python_example_folder_update
  • beta_release protected
  • fix/revert-gitlab-config
  • fix/citationEcologicalAssessment
  • documentation/styleupdate
  • feature/lightMode
  • documentation/create_mission_xml
  • 28-empennage-design-update-documentation-according-to-workshop
  • documentation/fix-dot-equations
  • documentation/propulsion-design-module
  • documentation/gitlab-workflow
  • documentation/cost_estimation_update
  • documentation/mkdocs_python_update
  • documentation/tank_design_update
  • documentation/landing_gear_design_update
  • 0.5.0
22 results

getting_started.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    greyscale.h 1.43 KiB
    #ifndef GREYSCALE_H_INCLUDED
    #define GREYSCALE_H_INCLUDED
    
    #include <iostream>
    
    class GreyScale
    {
        private:
            int breite , hoehe;
            float* mat;
            static void greyError(const char str[]);
        public:
            ~GreyScale(){delete[] mat;};
            GreyScale(int breite = 0,int hoehe = 0);
            GreyScale(const GreyScale&);
            float& operator()(int,int);
            float operator()(int,int) const;
            GreyScale& resize(int,int);
            GreyScale& operator=(const GreyScale&);
            GreyScale& operator+=(const GreyScale&);
            GreyScale& operator-=(const GreyScale&);
    
            int getWidth() const {
            return breite;
            }
            int getHeight() const {
            return hoehe;
            }
    
            GreyScale binarize(float) const;
            GreyScale blur() const;
            GreyScale clamp() const;
            GreyScale contrast() const;
            GreyScale kirsch() const;
            GreyScale linTrans(float a,float b) const;
            GreyScale laplace() const;
            GreyScale invert() const;
            GreyScale median() const;
            GreyScale sobel() const;
            GreyScale convolve(const float mask[], int size=3) const;
            void check(std::istream &s);
    
            void baummacher(int arr[]);
    
            friend std::istream& operator>>(std::istream&, GreyScale&);
            friend std::ostream& operator<<(std::ostream&, const GreyScale&);
    
    };
    
    #endif // GREYSCALE_H_INCLUDED