#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0

    Rows, cols and channels


    Hi people,

    I have a question.


    Code:
    int rows= img.rows;
    int cols= img.cols;
    int channels=img.channels();
    Does this code give to me the numbers of rows,cols and channels of an image I read with imread function?
    Does the image I use must be in the same path of the project to be read?
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,379
    Rep Power
    1871
    Your question is meaningless without some more context.

    Googling "imread" throws up half a dozen different API's, and nobody is going to check through all of them to see which best fits your problem.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0
    openCV is the library. My fault

IMN logo majestic logo threadwatch logo seochat tools logo