Ask Your Question

Kenny Karnama's profile - activity

2020-04-12 03:07:56 -0500 received badge  Notable Question (source)
2019-11-24 16:37:39 -0500 received badge  Notable Question (source)
2019-07-29 03:21:18 -0500 received badge  Popular Question (source)
2019-07-16 13:36:46 -0500 received badge  Popular Question (source)
2018-06-02 09:56:30 -0500 asked a question Shear Transformation

Shear Transformation Hi guys, any ideas to calculate new value of length image after shear transformation ? thanks

2018-06-02 04:31:07 -0500 commented question imread(argv[1]) and imread(argv[1],CV_LOAD_IMAGE_ANYDEPTH) gives different channel

thanks guys. sorry for the confusion.

2018-06-02 02:38:42 -0500 commented question imread(argv[1]) and imread(argv[1],CV_LOAD_IMAGE_ANYDEPTH) gives different channel

okay, i have already written an issue in opencv

2018-06-02 00:51:59 -0500 asked a question imread(argv[1]) and imread(argv[1],CV_LOAD_IMAGE_ANYDEPTH) gives different channel

imread(argv[1]) and imread(argv[1],CV_LOAD_IMAGE_ANYDEPTH) gives different channel Hi guys, i am still confused why imre

2018-04-16 05:04:17 -0500 asked a question Find minimum distance between two convex hulls

Find minimum distance between two convex hulls Hi guys, i have already created convex hulls using cv::Hull. Now, i want

2018-04-15 03:47:47 -0500 marked best answer How to find out if rect is inside another rect ?

Hi guys, is there any method in opencv to check if rect is inside another rect ? thanks.

2018-04-15 03:12:59 -0500 commented answer How to find out if rect is inside another rect ?

so to check if a rectangle is inside other rectangle, what should i do ?

2018-04-15 02:38:31 -0500 asked a question How to find out if rect is inside another rect ?

How to find out if rect is inside another rect ? Hi guys, is there any method in opencv to check if rect is inside anoth

2018-04-15 02:38:13 -0500 asked a question How to find out if rect is inside another rect ?

How to find out if rect is inside another rect ? Hi guys, is there any method in opencv to check if rect is inside anoth

2018-04-14 11:10:04 -0500 marked best answer fill area of cv::Rect with color

Hi guys, how do i fill area of cv::Rect with color ? thanks

2018-04-14 10:59:21 -0500 asked a question fill area of cv::Rect with color

fill area of cv::Rect with color Hi guys, how do i fill area of cv::Rect with color ? thanks

2018-04-14 10:57:52 -0500 marked best answer Center of rectangles and centroid

Hi guys, i want to ask simple question, is center of rectangles in opencv center attribute of rect same with centroid ? thanks.

2018-04-14 10:57:39 -0500 received badge  Supporter (source)
2018-04-08 02:15:29 -0500 marked best answer Connected Component Labelling

Hi guys, i am trying to implement CCL based on algorithm provided in http://aishack.in/tutorials/connected.... I have already created it, and it works if the resolution of image is not too high. any ideas ?

here is the example

image with 448 x 18 pixels, after ccl

image in 448 x 18 pixels

same image with 1495 x 60 pixels, after ccl

same image with 1495 x 60 pixels

2018-04-08 02:12:17 -0500 commented question weired compiler error warning "Can't compare structures"

try to add the namespace, like in c++, you have to use cv::vec3d

2018-04-08 01:07:10 -0500 asked a question How to find if two rotated rectangles overlapped ?

How to find if two rotated rectangles overlapped ? Hi guys, i have already created rotated rect for my connected compone

2018-04-08 00:52:17 -0500 asked a question Center of rectangles and centroid

Center of rectangles and centroid Hi guys, i want to ask simple question, is center of rectangles in opencv center attri

2018-04-06 04:41:47 -0500 commented question Connected Component Labelling

i have already found the problem, i have to use ushort instead of uchar when store the labels.

2018-04-04 15:08:10 -0500 edited question Connected Component Labelling

Connected Component Labelling Hi guys, i am trying to implement CCL based on algorithm provided in http://aishack.in/tut

2018-04-04 15:07:17 -0500 asked a question Connected Component Labelling

Connected Component Labelling Hi guys, i am trying to implement CCL based on algorithm provided in http://aishack.in/tut

2018-02-25 21:23:13 -0500 commented answer Initialize Mat with type CV_8UC1 from array

@berak, hi man. i have already fixed it. sorry for mistakes. and thanks it really works. thank you so much

2018-02-25 21:22:39 -0500 edited question Initialize Mat with type CV_8UC1 from array

Initialize Mat with type CV_8UC1 from array Hi guys, i tried to initialize my Mat variable which size is 4 x 9. Here is

2018-02-25 21:18:25 -0500 received badge  Citizen Patrol (source)
2018-02-25 21:15:30 -0500 marked best answer Initialize Mat with type CV_8UC1 from array

Hi guys, i tried to initialize my Mat variable which size is 4 x 9. Here is my code :

int dummy_query_data[36] = { 
        255, 0, 255, 255,255,255,0,255,255,
        255,0,0,255,255,255,255,255,255,
        255,0,0,255,255,255,0,255,255,
        255,0,0,255,255,255,255,255,255
     };


Mat C = Mat(4,9,CV_8UC1,dummy_query_data);

But when i print it to the console using

cout << "C = "<< endl << " "<< C << endl;

It gives incorrect result

C = 
 [255,   0,   0,   0,   0,   0,   0,   0, 255;
   0,   0,   0, 255,   0,   0,   0, 255,   0;
   0,   0, 255,   0,   0,   0,   0,   0,   0;
   0, 255,   0,   0,   0, 255,   0,   0,   0]

Any solution regarding this ? thanks.

2018-02-25 21:15:29 -0500 commented answer Initialize Mat with type CV_8UC1 from array

thanks, it works @berak

2018-02-25 21:13:33 -0500 edited question Initialize Mat with type CV_8UC1 from array

Initialize Mat with type CV_8UC1 from array Hi guys, i tried to initialize my Mat variable which size is 4 x 9. Here is

2018-02-25 21:13:29 -0500 edited question Initialize Mat with type CV_8UC1 from array

Initialize Mat with type CV_8UC1 from array Hi guys, i tried to initialize my Mat variable which size is 4 x 6. Here is

2018-02-25 21:07:12 -0500 edited question Initialize Mat with type CV_8UC1 from array

Initialize Mat with type CV_8UC1 from arrayt Hi guys, i tried to initialize my Mat variable which size is 4 x 6. Here is

2018-02-25 21:04:37 -0500 asked a question Initialize Mat with type CV_8UC1 from array

Initialize Mat with type CV_8UC1 from arrayt Hi guys, i tried to initialize my Mat variable which size is 4 x 6. Here is

2017-06-01 03:18:24 -0500 commented answer Count black pixel each column manual

sorry, i still don't understand. could you give me an example ? Because actually i want to count number of transition from black to white pixel on each column. Thanks

2017-05-31 06:20:42 -0500 commented answer Count black pixel each column manual

if i want to iterate each column, it means i should change image.at<uchar>(row,col) to image.at<uchar>(col,row) ? Thanks.

2017-05-30 21:56:10 -0500 asked a question Count black pixel each column manual

Hi guys, i have already counted black pixel from binary image using countNonZero function. And i was curious to implement it manually. Here is my code to count black pixel on each column :

for(int aa = 0; aa < after_shear.cols;aa++){
    Mat aaTmp = after_shear.col(aa);
    int  jumlah = 0;
    for(int oalah = 0; oalah < aaTmp.rows;oalah++){
      for(int oalah2 = 0; oalah2<aaTmp.cols;oalah2++){
        //cout <<(int)fuckTmp.at<uchar>(oalah,oalah2)<<endl;
        if((int)aaTmp.at<uchar>(oalah,oalah2)==0){
          jumlah++;
        }
      }
    }

    if(jumlah==0||jumlah==1){
      pspArray2.push_back(fuck2);
    }
  }

But, it gives me zero result.

Can anyone help me ? Thanks

2017-05-26 08:29:07 -0500 marked best answer Move pixel coordinate

Hi guys, i want to implement this formula :

formula

can anyone suggest function in opencv to do this ?

2017-05-26 08:28:57 -0500 commented answer Move pixel coordinate

why, you iterate with the column first ? Should it be the row first ?