Skip to content

STYLE: Remove ImageRegionConstIteratorWithIndex from OpenCVVideoCapture#5847

Open
N-Dekker wants to merge 1 commit intoInsightSoftwareConsortium:mainfrom
N-Dekker:Remove-ImageRegionConstIteratorWithIndex-from-OpenCVVideoCapture
Open

STYLE: Remove ImageRegionConstIteratorWithIndex from OpenCVVideoCapture#5847
N-Dekker wants to merge 1 commit intoInsightSoftwareConsortium:mainfrom
N-Dekker:Remove-ImageRegionConstIteratorWithIndex-from-OpenCVVideoCapture

Conversation

@N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Mar 1, 2026

The declared local iterator variable itkIter appears unused.


This local variable was introduced with commit 48aba9a (9 May 2011), but even then, it was unused:

typedef itk::ImageRegionConstIteratorWithIndex<FrameType> ITKIterType;
ITKIterType itkIter(frame, frame->GetLargestPossibleRegion());

@gabehart Do you possibly still have a clue why the variable was introduced in the first place? I hope you agree with its removal, as hereby proposed!

The declared local iterator variable `itkIter` appears unused.
@github-actions github-actions bot added area:Video Issues affecting the Video module type:Style Style changes: no logic impact (indentation, comments, naming) labels Mar 1, 2026
@N-Dekker N-Dekker marked this pull request as ready for review March 2, 2026 09:55
@dzenanz
Copy link
Member

dzenanz commented Mar 2, 2026

ITK.macOS.Python failed due to some timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Video Issues affecting the Video module type:Style Style changes: no logic impact (indentation, comments, naming)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants