Ask Your Question

teenvan95's profile - activity

2020-03-07 12:01:15 -0600 received badge  Famous Question (source)
2019-05-29 08:17:18 -0600 received badge  Notable Question (source)
2019-01-12 05:01:10 -0600 received badge  Popular Question (source)
2018-01-25 02:37:02 -0600 asked a question HOG-Descriptor malloc freed error

HOG-Descriptor malloc freed error I am trying to calculate the HOGDescriptors for a roi of an image but I am getting the

2018-01-24 11:48:43 -0600 marked best answer Non Maximum Suppression

I am developing multiple ROIs and classifying the existence of an object (object detection). Now I have some fairly overlapping ROIs and want to reduce the number and wanted to use NMS for that. But I dont really how to go about that. Is there any c++ code available for NMS implemented.

2018-01-24 07:48:43 -0600 asked a question Non Maximum Suppression

Non Maximum Suppression I am developing multiple ROIs and classifying the existence of an object (object detection). Now

2018-01-23 10:46:21 -0600 commented question Mat to vector

It returns 5

2018-01-23 10:41:24 -0600 asked a question Mat to vector

Mat to vector I am trying to copy elements from a Mat to a vector. I tried the below method, but the vector has weird va

2018-01-23 09:27:41 -0600 commented question Find the most frequently occurring element in a row

yes CV_8UC1

2018-01-23 09:19:36 -0600 commented question Find the most frequently occurring element in a row

Not an image per se. It is just a Mat object of labels generated from the DTree I trained. Specifically, it consists of

2018-01-23 09:03:01 -0600 asked a question Find the most frequently occurring element in a row

Find the most frequently occurring element in a row I have a vector of 5 mat objects each of size 60 x 1. I need to retu

2018-01-23 08:15:37 -0600 marked best answer How to get a random subset of Mat ?

I have a data and label Mat object and at each iteration, I need to generate a random subset of the data and labels. How should I do this?

2018-01-23 08:15:37 -0600 received badge  Scholar (source)
2018-01-23 08:02:17 -0600 asked a question How to get a random subset of Mat ?

How to get a random subset of Mat ? I have a data and label Mat object and at each iteration, I need to generate a rando

2018-01-23 07:44:10 -0600 received badge  Supporter (source)
2018-01-23 05:29:19 -0600 marked best answer HOG-Descriptor Malloc error

I am trying to calculate the hog descriptors of a vector of images but keep getting the following error:

HOG-Descriptor(76121,0x70000f807000) malloc: * error for object 0x106f55c10: incorrect checksum for freed object - object was probably modified after being freed. * set a breakpoint in malloc_error_break to debug

My Code for your reference:

void calcDescriptors(std::vector<Mat> &img_list, Mat &data){
    HOGDescriptor h;
    h.winSize = Size(128, 112);
    vector<float> descriptors;
    for(size_t k=0; k<img_list.size(); k++){
        h.compute(img_list[k], descriptors);
        data.push_back(descriptors);
    }
}

calcDescriptors(img_list, data);
cout<<"Creating and training dtree\n";
Ptr<ml::DTrees> model = ml::DTrees::create();
model->train(ml::TrainData::create(data, ml::ROW_SAMPLE, labels));
2018-01-23 05:07:40 -0600 asked a question Allocator 'n' exceeds maximum supported size

Allocator 'n' exceeds maximum supported size I am trying to create a training set for training a DTree but I keep gettin

2018-01-23 03:22:54 -0600 commented answer HOG-Descriptor Malloc error

On this line : -> Ptr<ml::DTrees> model = ml::DTrees::create(); model->train(ml::TrainData::create(data, ml

2018-01-23 03:16:25 -0600 commented answer HOG-Descriptor Malloc error

Thanks for the answer. Now I do have a data Mat object of size 388 x 7020 but I get the following error: libc++abi.dylib

2018-01-23 03:00:45 -0600 received badge  Student (source)
2018-01-23 02:48:41 -0600 asked a question HOG-Descriptor Malloc error

HOG-Descriptor Malloc error I am trying to calculate the hog descriptors of a vector of images but keep getting the foll