Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

fastest way to access to individual bytes in CV_8U1

I am hoping to squeeze every ounce of speed from opencv videocapture. Can someone please enlighten me as to whether there is a better method to access individual pixel grayscale values as i iterate through a CV_8U1. i am using currently

public int getValue (int Col, int Row) { 
    return (int)itsMat.get(Row,Col)[0];
}

all help greatly appreciated.

fastest way to access to individual bytes in CV_8U1

I am hoping to squeeze every ounce of speed from opencv videocapture. Can someone please enlighten me as to whether there is a better method to access individual pixel grayscale values as i iterate through a CV_8U1. i am using currently

public int getValue (int Col, int Row) { 
    return (int)itsMat.get(Row,Col)[0];
}

all help greatly appreciated.

click to hide/show revision 3
retagged

updated 2014-11-09 07:23:54 -0600

berak gravatar image

fastest way to access individual bytes in CV_8U1

I am hoping to squeeze every ounce of speed from opencv videocapture. Can someone please enlighten me as to whether there is a better method to access individual pixel grayscale values as i iterate through a CV_8U1. i am using currently

public int getValue (int Col, int Row) { 
    return (int)itsMat.get(Row,Col)[0];
}

all help greatly appreciated.