Skip to content

Conversation

@adrianroth10
Copy link

@adrianroth10 adrianroth10 commented Apr 8, 2021

Following changes are suggested:

  • New module viewer.py to house the new viewer code.
  • Remake of frame_reader from a yield iterator to a class Frame_reader that itself is an iterator. Then in addition one can get images using __getitem__ or [] syntax.
  • Some remake in cli/pfs_raw.py to instead of showing image with OpenCV use the new viewer.

Uncertainties:

  • Should the viewer have frame index values similar to PCC (i.e. use the FirstFrameNo attribute in header)?
  • Should the Frame_reader class have a possibility to follow FirstFrameNo as above?
  • Is the installation working with the added dependencies of pyqt and pyqtgraph? (I did not get it to work in venv)

The code has not the type suggestions that has been added to the rest of the code base but that can be fixed when the code looks good. Otherwise, I am open for suggestions.

A response to #24

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant