mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
remove some unused variables
This commit is contained in:
parent
cf14c9ddf7
commit
d23728122f
5 changed files with 2 additions and 7 deletions
|
@ -123,7 +123,7 @@ VALUE
|
||||||
rb_initialize(int argc, VALUE *argv, VALUE self)
|
rb_initialize(int argc, VALUE *argv, VALUE self)
|
||||||
{
|
{
|
||||||
VALUE _dims, _sizes, _type, _ranges, _uniform;
|
VALUE _dims, _sizes, _type, _ranges, _uniform;
|
||||||
int dims, type, uniform;
|
int uniform;
|
||||||
int* sizes;
|
int* sizes;
|
||||||
float** ranges = NULL;
|
float** ranges = NULL;
|
||||||
|
|
||||||
|
|
|
@ -4415,7 +4415,6 @@ rb_filter2d(int argc, VALUE *argv, VALUE self)
|
||||||
CvArr* self_ptr = CVARR(self);
|
CvArr* self_ptr = CVARR(self);
|
||||||
VALUE _dest = Qnil;
|
VALUE _dest = Qnil;
|
||||||
try {
|
try {
|
||||||
int type = cvGetElemType(kernel);
|
|
||||||
_dest = new_mat_kind_object(cvGetSize(self_ptr), self);
|
_dest = new_mat_kind_object(cvGetSize(self_ptr), self);
|
||||||
cvFilter2D(self_ptr, CVARR(_dest), kernel, NIL_P(_anchor) ? cvPoint(-1,-1) : VALUE_TO_CVPOINT(_anchor));
|
cvFilter2D(self_ptr, CVARR(_dest), kernel, NIL_P(_anchor) ? cvPoint(-1,-1) : VALUE_TO_CVPOINT(_anchor));
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,6 @@ rb_allocate(VALUE klass)
|
||||||
VALUE
|
VALUE
|
||||||
rb_initialize(int argc, VALUE *argv, VALUE self)
|
rb_initialize(int argc, VALUE *argv, VALUE self)
|
||||||
{
|
{
|
||||||
VALUE obj, x, y, z;
|
|
||||||
CvPoint3D32f *self_ptr = CVPOINT3D32F(self);
|
CvPoint3D32f *self_ptr = CVPOINT3D32F(self);
|
||||||
switch (argc) {
|
switch (argc) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
@ -377,7 +377,7 @@ compute_smoothness(const IplImage *pFourierImage, const double lowFreqRatio, con
|
||||||
int low, high;
|
int low, high;
|
||||||
IplImage *filteredFourierImage;
|
IplImage *filteredFourierImage;
|
||||||
int totalIntensity;
|
int totalIntensity;
|
||||||
double sum, den, totalArea;
|
double den, totalArea;
|
||||||
CvScalar scalar;
|
CvScalar scalar;
|
||||||
|
|
||||||
if (!(pFourierImage->nChannels == 1 && pFourierImage->depth == 64) ) {
|
if (!(pFourierImage->nChannels == 1 && pFourierImage->depth == 64) ) {
|
||||||
|
|
|
@ -202,9 +202,6 @@ __NAMESPACE_END_POINT_SET
|
||||||
int
|
int
|
||||||
CVPOINTS_FROM_POINT_SET(VALUE object, CvPoint **pointset)
|
CVPOINTS_FROM_POINT_SET(VALUE object, CvPoint **pointset)
|
||||||
{
|
{
|
||||||
VALUE storage;
|
|
||||||
CvSeq *seq = 0;
|
|
||||||
CvPoint2D32f p32;
|
|
||||||
if (rb_obj_is_kind_of(object, cCvSeq::rb_class())) {
|
if (rb_obj_is_kind_of(object, cCvSeq::rb_class())) {
|
||||||
if (CV_IS_SEQ_POINT_SET(CVSEQ(object))) {
|
if (CV_IS_SEQ_POINT_SET(CVSEQ(object))) {
|
||||||
*pointset = (CvPoint*)cvCvtSeqToArray(CVSEQ(object),
|
*pointset = (CvPoint*)cvCvtSeqToArray(CVSEQ(object),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue