Ask Your Question

Seb's profile - activity

2020-08-12 12:03:36 -0500 received badge  Teacher (source)
2017-10-02 10:30:44 -0500 received badge  Notable Question (source)
2016-01-29 13:39:27 -0500 received badge  Student (source)
2015-11-17 21:49:00 -0500 received badge  Popular Question (source)
2013-04-01 12:25:21 -0500 answered a question How can I speed up filter2D

There's not much you can do then. Convulution is time-consuming.

2013-04-01 12:20:44 -0500 answered a question How can I imread just an ROI, not the whole image?

You still need to read the entire binary file. But you can alter the part where OpenCV build a Mat object. You can just read your ROI from memory and create a smaller Mat object.

2013-03-26 14:07:39 -0500 received badge  Supporter (source)
2013-03-26 14:07:30 -0500 commented answer Access 32F Mat element by pointer

Awesome, that is working!

2013-03-26 14:03:19 -0500 received badge  Scholar (source)
2013-03-26 14:02:24 -0500 answered a question Destroying Windows in Separate Functions

First thing first, did you break into your code and are you 100% sure that you program freeze at the cvDestroyWindow?

2013-03-26 13:52:40 -0500 received badge  Editor (source)
2013-03-26 13:52:00 -0500 asked a question Access 32F Mat element by pointer

Usually I do

unsigned char *input = (unsigned char*)(;
for (int i = 0; i < oOut.rows; i++)
  for (int j = 0; j < oOut.cols; j++)
    input[oOut.step[0]*i + oOut.step[1]*j] = 255;

This is with a typical 8UC1 mat. Now, I want to store values that can range from -1500 to 1500. So I'm using a CV_32F mat. But I can't figure out how to store values inside. I always end up with corruption with incoherent values.

Can someone help me?

Edit, I mean 32F, not 32S, my mistake

Thanks Seb

2013-03-26 13:46:34 -0500 commented answer Android: Stretch camera

Thanks! I really appreciate your work

2013-02-27 12:23:10 -0500 commented answer Android: Stretch camera

Wow, I like how flexible you guys are. That's awesome.

2013-02-26 20:07:54 -0500 asked a question Android: Stretch camera


I'm using the with layout set at fill_parent

In my Java, I have set this

mOpenCvCameraView.setMaxFrameSize(320, 240);

Actually, when I'm running my app, it shows the camera images but at 320x240.

I want to "stretch" it to go full screen without changing the camera resolution.

OpenCV 2.4.4-beta

Thanks Seb