Ask Your Question

ymw's profile - activity

2019-09-05 01:00:57 -0500 received badge  Enthusiast
2019-09-04 03:08:03 -0500 commented question extract pixel values in images raw by raw c++

hi @gino0717, this is what i was looking for, thank you very much for your reply.

2019-09-04 02:49:49 -0500 edited question extract pixel values in images raw by raw c++

extract pixel values in images raw by raw c++ Hi, I need to extract rows of an image(size 640x480) as arrays without

2019-09-04 02:16:16 -0500 asked a question extract pixel values in images raw by raw c++

extract pixel values in images raw by raw c++ Hi, I need to extract pixels as a array in row of an image(size 640x480) w

2019-07-22 04:14:34 -0500 edited question Mat array[20] to unsigned short array

Mat array[20] to unsigned short array hi, I am using following method to convert image pixel values to unsigned short ar

2019-07-22 04:11:24 -0500 asked a question Mat array[20] to unsigned short array

Mat array[20] to unsigned short array hi, I am using following method to convert image pixel values to unsigned short ar

2019-02-23 02:48:16 -0500 marked best answer unsigned short 1D array to Mat

hi, how can I convert unsigned short array to Mat in opencv ? unsigned short array[220*220]//contain pixel values of image

2019-02-23 02:40:59 -0500 commented answer unsigned short 1D array to Mat

Mat t; h.convertTo(t,CV_8U); this is what you mean right?

2019-02-23 02:30:47 -0500 commented answer unsigned short 1D array to Mat

gino0717, thanks for the reply, but I cannot see my image when I use imshow("h",h);

2019-02-22 22:30:27 -0500 asked a question unsigned short 1D array to Mat

unsigned short 1D array to Mat hi, how can I convert unsigned short array to Mat in opencv ? unsigned short array[220*22

2019-02-22 14:23:19 -0500 commented answer unsigned short 1D array of gray image

thank you for the reply, now it works as I expected, can you please tell me how to do the opposite way? unsiged short ar

2019-02-22 10:29:48 -0500 marked best answer unsigned short 1D array of gray image

hi, I know this sound very small problem, But I have been searching google answer for this, basically what I need is convert 2d array of gray image into 1d unsigned short array. I tried following code, but I could not get what I need.

unsigned short pixellist[48400];//image size 220x220

img= imread("lena.png");

cvtColor(img,gimg,COLOR_RGB2GRAY);

unsigned char* dataMat = gimg.data;

how can I get dataMat into pixellist ? without for loops??? or are there any other method to convert Mat to unsigned short array???

2019-02-22 10:17:57 -0500 commented answer unsigned short 1D array of gray image

hi berak how can I use this method without upscaling?

2019-02-22 10:17:41 -0500 commented answer unsigned short 1D array of gray image

hi berak how can U use this method without upscaling?

2019-02-22 03:51:09 -0500 edited question unsigned short 1D array of gray image

unsigned short 1D array of gray image hi, I know this sound very small problem, But I have been searching google answer

2019-02-22 03:49:06 -0500 edited question unsigned short 1D array of gray image

unsigned short 1D array of gray image hi, I know this sound very small problem, But I have been searching google answer

2019-02-22 03:47:53 -0500 edited question unsigned short 1D array of gray image

unsigned short 1D array of gray image hi, I know this sound very small problem, But I have been searching google answer

2019-02-22 03:47:43 -0500 edited question unsigned short 1D array of gray image

unsigned short 1D array of gray image hi, I know this sound very small problem, But I have been searching google answer

2019-02-21 23:04:18 -0500 commented answer unsigned short 1D array of gray image

hi Chris, Thanks for the reply, your answer works as I needed.But I cannot use vector unsigned short for my situation. t

2019-02-21 23:03:59 -0500 commented answer unsigned short 1D array of gray image

hi Chris, Thanks for the reply, your answer works as I needed.But I cannot vector unsigned short for my situation. the i

2019-02-21 22:35:46 -0500 commented answer unsigned short 1D array of gray image

hi Chris, Thanks for the reply, your answer works as I needed. the image I use here is size of 220x220. is it impossible

2019-02-21 22:24:11 -0500 commented answer unsigned short 1D array of gray image

hi Chris, Thanks for the reply, your answer works as I needed. the image I use here is size of 220x220. is it impossible

2019-02-21 22:23:52 -0500 commented answer unsigned short 1D array of gray image

hi Chris, Thanks for the reply, your answer works as I needed. the image I use here is size of 220x220. is it impossible

2019-02-21 12:28:08 -0500 received badge  Editor (source)
2019-02-21 12:28:08 -0500 edited question unsigned short 1D array of gray image

unsigned short 1D array of gray image hi, I know this sound very small problem, But I have been searching google answer

2019-02-21 12:27:05 -0500 asked a question unsigned short 1D array of gray image

unsigned short 1D array of gray image hi, I know this sound very small problem, But I have been searching google answer

2019-02-05 01:40:26 -0500 marked best answer c++ similar function to numpy

hi there, I have developed my opencv vision algorithm in python. in my algorithm I have used numpy function as follow,

roi=cv2.imread("roi.png") img=cv2.imread("image.png")
img[roi<100] = 0;

basically what I have done is, I have image (roi.png) which contain important area for generate features, so I will consider only the area in img which roi has greater values than 100, so my problem is I need to implement this code in c++, how can I do it without numpy in c++? thanks

2019-02-05 01:40:26 -0500 received badge  Scholar (source)
2019-02-04 13:23:45 -0500 asked a question c++ similar function to numpy

c++ similar function to numpy hi there, I have developed my opencv vision algorithm in python. in my algorithm I have us