Skip to content

Adding cv::Mat::rbegin() and cv::Mat::rend() #4641

@opencv-pushbot

Description

@opencv-pushbot

Transferred from http://code.opencv.org/issues/3334

|| Adi Shavit on 2013-10-22 07:00
|| Priority: Normal
|| Affected: None
|| Category: core
|| Tracker: Feature
|| Difficulty: 
|| PR: 
|| Platform: None / None

Adding cv::Mat::rbegin() and cv::Mat::rend()

I needed to iterate over a histogram in reverse order and wanted to do it with stl algorithms.
But to my surprise, cv::Mat does not have an rbegin() and rend() methods.

History

Dmitry Retinskiy on 2013-10-28 17:43
Hi Adi,

cv::Mat's iterators are bi-directional, please refer to the documentation "here":http://docs.opencv.org/modules/core/doc/basic_structures.html?highlight=mat#Mat.
If it doesn't suit your needs then we would appreciate your contribution to the library (if you are interested, you can use these "instructions":http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute and this ticket to continue with a pull request, otherwise it will be closed).
Dinar Ahmatnurov on 2013-11-08 08:08
Hi Adi!
Any updates?
-   Status changed from New to Open
Dinar Ahmatnurov on 2013-11-08 08:19
-   Category set to core

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions