VideoCapture::get should be const (Feature #3652)


Added by Frank Stähr almost 11 years ago. Updated over 10 years ago.


Status:Cancelled Start date:2014-04-15
Priority:Low Due date:
Assignee:- % Done:

0%

Category:highgui-video
Target version:-
Difficulty: Pull request:

Description

Commands like

cv::VideoCapture cv_video("inputfile.avi");
cv_video.get(CV_CAP_PROP_FRAME_COUNT)

keep cv_video constant and should therefore be declared as const.

Or are there any reasons for omitting constness? I have problems with my library builded on some CV structures and have to use an ugly const_cast<VideoCapture&> because of this.


Associated revisions

Revision bbf3607f
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #3652 from alalek:ocl_message

History

Updated by Evgeny Talanin almost 11 years ago

  • Assignee set to Vadim Pisarevsky
  • Priority changed from Normal to Low

Updated by Andrew Senin almost 11 years ago

Hi Frank. Please consider creating a fixing pull request for this issue (http://code.opencv.org/projects/opencv/wiki/How_to_contribute). Thanks!

  • Status changed from New to Open
  • Assignee changed from Vadim Pisarevsky to Frank Stähr

Updated by Frank Stähr almost 11 years ago

  • Assignee deleted (Frank Stähr)

Updated by Artur Wieczorek over 10 years ago

Duplicated, see #2625

  • Status changed from Open to Cancelled

Also available in: Atom PDF