2018-12-02 08:59:36 -0500 asked a question Find max shape to fit in my contour Find max shape to fit in my contour C:\fakepath\111.jpg Hello I want to find a way to find predefined shape that will i 2018-10-23 03:18:49 -0500 received badge ● Editor (source) 2018-10-23 03:18:49 -0500 edited question Extracting part of image with most area before contour Extracting part of image with most area before contour Hello In my image I detect the blue line (through blobs) make a c 2018-10-18 07:53:57 -0500 commented answer Laplace matlab opencv differences I took my matrix from Matlab: fspacial('laplacian'); alpha = p2; alpha = max(0,min(alpha,1)); h1 = alpha/(alpha 2018-10-18 04:42:04 -0500 commented question Laplace matlab opencv differences Its symmetrical (and try it anyway same answer :) ) 2018-10-18 03:51:47 -0500 commented question Laplace matlab opencv differences Yes I need convolution its default option as my imfilter function is: ILAP = imfilter(lm, h, 'replicate', 'conv'); Wh 2018-10-18 03:29:00 -0500 asked a question Laplace matlab opencv differences Laplace matlab opencv differences Hello I wanted to implement the imfilter with the Laplace option (Sobel option worked 2018-08-03 00:56:59 -0500 received badge ● Supporter (source) 2018-07-23 15:12:04 -0500 marked best answer Extracting part of image with most area before contour Hello In my image I detect the blue line (through blobs) make a close rectangle on the blob take the bottom of the rectangle and split the image to the top and bottom half over my red line(sorry it is not a straight line). But my problem is how can I extract the part of the image on top of the blue line with the most of area taken (where I drew the red line (obviously I don't know exactly if I took the most area but that is the general idea) 2018-07-23 15:12:04 -0500 received badge ● Scholar (source) 2018-07-23 09:21:48 -0500 commented answer Extracting part of image with most area before contour THANKS!!!ðŸ˜€ IT WORKS I did the first two steps located the line but it never accured to me to do an inverse image and loo 2018-07-23 09:21:36 -0500 commented answer Extracting part of image with most area before contour THANKS!!!ðŸ˜€ IT WORKS I did the first two steps located the line but it never accured to me to do an inverse image and loo 2018-07-23 08:01:13 -0500 commented question Extracting part of image with most area before contour The area above the blue line with a curve has water in it. The area below the blue line does not have water thus you see 2018-07-23 00:15:41 -0500 received badge ● Enthusiast 2018-07-22 13:26:30 -0500 asked a question Extracting part of image with most area before contour Extracting part of image with most area before contour C:\fakepath\OPENCV-PROBLEM.jpg Hello In my image I detect the blu 2018-07-22 13:26:29 -0500 asked a question Extracting part of image with most area before contour Extracting part of image with most area before contour C:\fakepath\OPENCV-PROBLEM.jpg Hello In my image I detect the blu 2017-06-13 08:34:08 -0500 commented question Copy vector single matrix into 2d matrix It is for work interview what I need to do is fft on all the pixels in the frame on like all 1st pixels fft signal all 2nd pixels fft signals and I cannot make a matrix of olumns of every picture I use the latest version of opencv downloaded from your site 2017-06-13 08:33:56 -0500 answered a question Copy vector single matrix into 2d matrix It is for work interview what I need to do is fft on all the pixels in the frame on like all 1st pixels fft signal all 2nd pixels fft signals and I cannot make a matrix of olumns of every picture I use the latest version of opencv downloaded from your site 2017-06-05 15:08:53 -0500 asked a question Copy vector single matrix into 2d matrix Hello I have the following code attached using namespace std; using namespace cv; int main() { CvCapture *capture=cvCaptureFromFile("C:\\test.mp4"); static const int length = (int) cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_COUNT); //250 static const int width = (int) cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH); //480 static const int height = (int) cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT); //360 static const int fps = (int) cvGetCaptureProperty(capture, CV_CAP_PROP_FPS); Mat image; Mat image_split[3]; Mat image_new; Mat image_temp; Mat image_vec = (Mat_(1, width*height) << 0); //Mat A = (Mat_(length, width*height) << 0); Mat A[length]; Mat B; IplImage* frame; for (int i = 0; i < length; i++) { frame = cvQueryFrame(capture); if (!frame) { break; } image = cvarrToMat(frame); split(image,image_split); image_new = image_split[2]; image_vec = image_new.reshape(1, height*width); image_vec.copyTo(A[i]); } cvReleaseCapture(&capture); return 0;}  and my problem is that I need to put image_vec into 2d matrix A and not create a multi-dimensional matrix what I tried to do is image_vec.col(0).copyTo(A.col(i)); and for some reason it didn't work thanks