c++ - Remapping image to different size and finding pixel location -
i implementing algorithm in have utilize multi resolution analysis. paper says have perform processing @ lower scale, find pixel locations , remap pixels according orignal scale. dont understand remapping function in open cv. if 1 help me great. thanks.
if want resize image in opencv, can this:
mat img = imread(picturepath, cv_8uc1); mat resized(new_heigh, new_width, cv_32fc1); img.convertto(img, cv_32fc1); resize(img, resized, resized.size());
if want acess specific pixel, use:
img.at<var>(row, col)
in cv_32fc1 format replace "var" "float", cv_8uc1 replace "int"
hope help.
c++ opencv image-processing
No comments:
Post a Comment