Class: OpenCV::Cv::StereoVar
- Inherits:
-
Object
- Object
- OpenCV::Cv::StereoVar
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ruby/ropencv/ropencv_types.rb
Constants collapse
- USE_INITIAL_DISPARITY =
1
- USE_EQUALIZE_HIST =
2
- USE_SMART_ID =
4
- USE_AUTO_PARAMS =
8
- USE_MEDIAN_FILTERING =
16
- CYCLE_O =
0
- CYCLE_V =
1
- PENALIZATION_TICHONOV =
0
- PENALIZATION_CHARBONNIER =
1
- PENALIZATION_PERONA_MALIK =
2
Instance Attribute Summary collapse
- #__obj_ptr__ ⇒ Object readonly private
Class Method Summary collapse
-
.from_native(ptr, context) ⇒ Object
private
can be overwritten by the user.
- .new(*args) ⇒ Object
- .rbind_from_native(ptr, context) ⇒ Object private
- .rbind_to_native(obj, context) ⇒ Object private
-
.to_native(obj, context) ⇒ Object
private
can be overwritten by the user.
Instance Method Summary collapse
-
#__owner__? ⇒ Boolean
private
returns true if the underlying pointer is owner of the real object.
-
#compute(left, right, disp) ⇒ Object
wrapper for void cv::StereoVar::operator()(const cv::Mat left, const cv::Mat right, cv::Mat disp).
-
#cycle ⇒ Object
wrapper for int cycle.
-
#cycle=(value) ⇒ Object
wrapper for int cycle.
-
#fi ⇒ Object
wrapper for float fi.
-
#fi=(value) ⇒ Object
wrapper for float fi.
-
#flags ⇒ Object
wrapper for int flags.
-
#flags=(value) ⇒ Object
wrapper for int flags.
-
#initialize(ptr) ⇒ StereoVar
constructor
private
A new instance of StereoVar.
-
#lambda ⇒ Object
wrapper for float lambda.
-
#lambda=(value) ⇒ Object
wrapper for float lambda.
-
#levels ⇒ Object
methods wrapper for int levels.
-
#levels=(value) ⇒ Object
wrapper for int levels.
-
#max_disp ⇒ Object
wrapper for int maxDisp.
-
#max_disp=(value) ⇒ Object
wrapper for int maxDisp.
-
#min_disp ⇒ Object
wrapper for int minDisp.
-
#min_disp=(value) ⇒ Object
wrapper for int minDisp.
-
#n_it ⇒ Object
wrapper for int nIt.
-
#n_it=(value) ⇒ Object
wrapper for int nIt.
-
#penalization ⇒ Object
wrapper for int penalization.
-
#penalization=(value) ⇒ Object
wrapper for int penalization.
-
#poly_sigma ⇒ Object
wrapper for double poly_sigma.
-
#poly_sigma=(value) ⇒ Object
wrapper for double poly_sigma.
-
#polyn ⇒ Object
wrapper for int poly_n.
-
#polyn=(value) ⇒ Object
wrapper for int poly_n.
-
#pyr_scale ⇒ Object
wrapper for double pyrScale.
-
#pyr_scale=(value) ⇒ Object
wrapper for double pyrScale.
Constructor Details
#initialize(ptr) ⇒ StereoVar
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of StereoVar.
13926 13927 13928 13929 13930 13931 13932 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13926 def initialize(ptr) @__obj_ptr__ = if ptr.is_a? StereoVarStruct ptr else StereoVarStruct.new(FFI::AutoPointer.new(ptr,StereoVarStruct.method(:release))) end end |
Instance Attribute Details
#__obj_ptr__ ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13923 13924 13925 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13923 def __obj_ptr__ @__obj_ptr__ end |
Class Method Details
.from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
13918 13919 13920 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13918 def self.from_native(ptr,context) rbind_from_native(ptr,context) end |
.new(*args) ⇒ Object
13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13862 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(StereoVarStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end # wrapper for cv::StereoVar::StereoVar() @@cv_stereo_var_stereo_var_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) args.size.upto(-1) do |i| args[i] = @@cv_stereo_var_stereo_var_defaults0[i] end begin return Rbind::cv_stereo_var_stereo_var(*args) rescue TypeError => e @error = e end end # wrapper for cv::StereoVar::StereoVar(int levels, double pyrScale, int nIt, int minDisp, int maxDisp, int poly_n, double poly_sigma, float fi, float lambda, int penalization, int cycle, int flags) @@cv_stereo_var_stereo_var2_defaults1 ||= [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] if(args.size >= 12 && args.size <= 12) args.size.upto(11) do |i| args[i] = @@cv_stereo_var_stereo_var2_defaults1[i] end begin return Rbind::cv_stereo_var_stereo_var2(*args) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.rbind_from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13906 13907 13908 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13906 def self.rbind_from_native(ptr,context) StereoVar.new(ptr) end |
.rbind_to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13897 13898 13899 13900 13901 13902 13903 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13897 def self.rbind_to_native(obj,context) if obj.is_a? StereoVar obj.__obj_ptr__ else raise TypeError, "expected kind of #{name}, was #{obj.class}" end end |
.to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
13912 13913 13914 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13912 def self.to_native(obj,context) rbind_to_native(obj,context) end |
Instance Method Details
#__owner__? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
returns true if the underlying pointer is owner of the real object
13937 13938 13939 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13937 def __owner__? @__obj_ptr__[:bowner] end |
#compute(left, right, disp) ⇒ Object
wrapper for void cv::StereoVar::operator()(const cv::Mat left, const cv::Mat right, cv::Mat disp)
14081 14082 14083 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14081 def compute(left, right, disp) Rbind::cv_stereo_var_compute( self, left, right, disp) end |
#cycle ⇒ Object
wrapper for int cycle
14061 14062 14063 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14061 def cycle() Rbind::cv_stereo_var_get_cycle( self) end |
#cycle=(value) ⇒ Object
wrapper for int cycle
14066 14067 14068 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14066 def cycle=(value) Rbind::cv_stereo_var_set_cycle( self, value) end |
#fi ⇒ Object
wrapper for float fi
14031 14032 14033 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14031 def fi() Rbind::cv_stereo_var_get_fi( self) end |
#fi=(value) ⇒ Object
wrapper for float fi
14036 14037 14038 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14036 def fi=(value) Rbind::cv_stereo_var_set_fi( self, value) end |
#flags ⇒ Object
wrapper for int flags
14071 14072 14073 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14071 def flags() Rbind::cv_stereo_var_get_flags( self) end |
#flags=(value) ⇒ Object
wrapper for int flags
14076 14077 14078 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14076 def flags=(value) Rbind::cv_stereo_var_set_flags( self, value) end |
#lambda ⇒ Object
wrapper for float lambda
14041 14042 14043 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14041 def lambda() Rbind::cv_stereo_var_get_lambda( self) end |
#lambda=(value) ⇒ Object
wrapper for float lambda
14046 14047 14048 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14046 def lambda=(value) Rbind::cv_stereo_var_set_lambda( self, value) end |
#levels ⇒ Object
methods wrapper for int levels
13961 13962 13963 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13961 def levels() Rbind::cv_stereo_var_get_levels( self) end |
#levels=(value) ⇒ Object
wrapper for int levels
13966 13967 13968 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13966 def levels=(value) Rbind::cv_stereo_var_set_levels( self, value) end |
#max_disp ⇒ Object
wrapper for int maxDisp
14001 14002 14003 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14001 def max_disp() Rbind::cv_stereo_var_get_max_disp( self) end |
#max_disp=(value) ⇒ Object
wrapper for int maxDisp
14006 14007 14008 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14006 def max_disp=(value) Rbind::cv_stereo_var_set_max_disp( self, value) end |
#min_disp ⇒ Object
wrapper for int minDisp
13991 13992 13993 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13991 def min_disp() Rbind::cv_stereo_var_get_min_disp( self) end |
#min_disp=(value) ⇒ Object
wrapper for int minDisp
13996 13997 13998 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13996 def min_disp=(value) Rbind::cv_stereo_var_set_min_disp( self, value) end |
#n_it ⇒ Object
wrapper for int nIt
13981 13982 13983 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13981 def n_it() Rbind::cv_stereo_var_getn_it( self) end |
#n_it=(value) ⇒ Object
wrapper for int nIt
13986 13987 13988 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13986 def n_it=(value) Rbind::cv_stereo_var_setn_it( self, value) end |
#penalization ⇒ Object
wrapper for int penalization
14051 14052 14053 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14051 def penalization() Rbind::cv_stereo_var_get_penalization( self) end |
#penalization=(value) ⇒ Object
wrapper for int penalization
14056 14057 14058 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14056 def penalization=(value) Rbind::cv_stereo_var_set_penalization( self, value) end |
#poly_sigma ⇒ Object
wrapper for double poly_sigma
14021 14022 14023 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14021 def poly_sigma() Rbind::cv_stereo_var_get_poly_sigma( self) end |
#poly_sigma=(value) ⇒ Object
wrapper for double poly_sigma
14026 14027 14028 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14026 def poly_sigma=(value) Rbind::cv_stereo_var_set_poly_sigma( self, value) end |
#polyn ⇒ Object
wrapper for int poly_n
14011 14012 14013 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14011 def polyn() Rbind::cv_stereo_var_get_polyn( self) end |
#polyn=(value) ⇒ Object
wrapper for int poly_n
14016 14017 14018 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 14016 def polyn=(value) Rbind::cv_stereo_var_set_polyn( self, value) end |
#pyr_scale ⇒ Object
wrapper for double pyrScale
13971 13972 13973 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13971 def pyr_scale() Rbind::cv_stereo_var_get_pyr_scale( self) end |
#pyr_scale=(value) ⇒ Object
wrapper for double pyrScale
13976 13977 13978 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 13976 def pyr_scale=(value) Rbind::cv_stereo_var_set_pyr_scale( self, value) end |