CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: tommy_chai

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: How to move a double dimensional array along an image?

    Here I attached the image and template where I used in my program. The file type I use is .ppm. I have changed it to .jpg in order to upload it. The program of my subroutine is:



    void...
  2. Re: How to move a double dimensional array along an image?

    iimax = 0;
    iiimax=0;
    #if 1
    for(i=0;i<height1-VS2;i+=10){
    for(j=0;j<width1-US2;j+=10){
    //printf("height=%d,width=%d\n",height1,width1);
    //printf("j=%d\n",j)
    for(hp=0; hp<VS2; hp++){...
  3. Re: How to move a double dimensional array along an image?

    Thanks for the sample. I have a doubt where the window will run one time only even the loop is as above.

    Let's say, height_window = 40, width_window = 110, height_image = 80 and width_image =...
  4. How to move a double dimensional array along an image?

    Hi all,
    I am currently using template matching technique where a mouth template with the size VS2xUS2 needs to be move pixel by pixel in a clipped region with bigger size height1xwidth1 so that...
  5. Re: How to use the data obtain in one C file to another C file?

    Anyone, please help!
  6. Re: How to use the data obtain in one C file to another C file?

    Anyone can help?
  7. Re: How to use the data obtain in one C file to another C file?

    Thank you very very much for the reply. Do you mind to make it in programming codes which can be connected with my attached codes?
    I have to admit that though i can get what you mean but i have no...
  8. How to use the data obtain in one C file to another C file?

    Hi guys,
    First, I detect coordinates for left and right corners of a mouth in Corners.c and saved in struct Coordinate for 72 images.
    How can I able to link it to another C file, let's say try5.c...
  9. Re: Read & write multiple images by single execution(Matlab)?

    Ops, thanks for the suggestions. If you have experience in template matching using matlab, please contribute a bit under my post in General Developer Topics section. Thank you very much for what you...
  10. Replies
    0
    Views
    5,665

    Template matching in Matlab?

    Anyone has an idea to do template matching by using matlab?



    c = normxcorr2(sub_onion(:,:,1),sub_peppers(:,:,1));
    % offset found by correlation
    [max_c, imax] = max(abs(c(:)));
    [ypeak, xpeak]...
  11. Re: Read & write multiple images by single execution(Matlab)?

    Sorry, if i caused any misunderstanding from my previous questions. Yup, i know D(i).name is the name of the file and a:b is from "a" part of the string to "b" part. Actually, what i want to ask...
  12. Re: Read & write multiple images by single execution(Matlab)?

    Thanks for the explanation. Now i have a clearer view except for End.
    (end-3:end)
    Do you mean "D(i).name" is the 4 elements?
    What does "end-3" means?
    Let's say the filename is "a.pgm". Do you...
  13. Re: How to filter the points to get only the left most and right most?

    Thanks for giving me such a good example to learn. After some studies and modifications, i have already solved my problems using C programming.

    Thank you very much.

    best regards,
    Tommy
  14. Re: Read & write multiple images by single execution(Matlab)?

    Sorry I have some problem with my matlab and cannot the software cannot be used in this period. According to what i have searched, this is what i understand (as shown in below.
    Do you mind to clear...
  15. Re: How to filter the points to get only the left most and right most?

    Thanks for helping. If I am not mistaken, only the selected x-coordinate will be kept into corner_list[n].x but i need the same correspoding y coordinate also . This is because the detected points, x...
  16. Re: How to filter the points to get only the left most and right most?

    Do you mind to show me? I have just started my C programming few days ago.

    Thanks.
  17. How to filter the points to get only the left most and right most?

    Hi all,
    Kindly need your attention here.
    Let say,


    n = 0; // number of corner points detected
    if (......)
    {
    corner_list[n].x = j; //x coordinate
    corner_list[n].y = i; //y coordinate
  18. Replies
    38
    Views
    68,996

    Re: Color Detection Algorithm

    It is good enough already for me. In order to make it auto, it is my job anyway. Thanks.
  19. Replies
    38
    Views
    68,996

    Re: Color Detection Algorithm

    Yiannakop: Thanks for your guidance, really appreciated it. From my opinion,
    colorDetectHSV(RGB1, [0.019 0.55 0.33], [0.01 0.02 0.02]);
    we still have to fill in manually for HSV value which we can...
  20. Replies
    0
    Views
    1,244

    Connected Component Labelling

    Hi all,

    I have done few lines of codes to get the largest connected components of this image which appears to be lips. The image is "label


    [L,n] = bwlabel(I2,4);
    figure(4)
    imshow(L)
    ...
  21. Replies
    38
    Views
    68,996

    Re: Color Detection Algorithm

    Thanks for the code.
    Yiannakop: I have tried your codes. Let's say we get HSV = [0.0782 0.5461 0.3454] by running selectPixelsAndGetHSV(RGB, Area). Then only we use the mean to apply to your...
  22. Read & write multiple images by single execution(Matlab)?

    Hi all,

    I am new in Matlab.


    for img=1:5
    a=imread(['input\m',int2str(img),'.pgm']);
    :
    :
    imwrite(I2,['result\m',int2str(img),'.pgm']);
  23. Replies
    7
    Views
    4,805

    Re: HSV or RGB for Lips detection?

    dglienna: Do you mean these codes can help me to extract red region as well as the lips from an image?
    My original image is in RGB. If HSL can detect lips and ignore others, i am going to use it....
  24. Replies
    7
    Views
    4,805

    Re: HSV or RGB for Lips detection?

    Never mind, it is ok. I hope someone can give me a helping hand. I have studied actually. Just wondering whether there is something wrong inside the codes.

    Thanks.
  25. Replies
    7
    Views
    4,805

    Re: HSV or RGB for Lips detection?

    I mean nothing has changed for red even i change the first value of colorDetectHSV() for red. I mean i can't even get the mouth like what i did in RGB. It's like a mess, can't differentiate the mouth...
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured