![]() |
iVS3D v2.0.0
|
The ModelInputPictures class is responsible for saving all the Data regarding the input. It implements the interface ISerializable to be able to save all its current Data. More...
#include <modelinputpictures.h>
Classes | |
| class | Memento |
| The Memento class is used to store and restore the keyframe list of mip for undo and redo. More... | |
Signals | |
| void | sig_mipChanged () |
| Signal, which is emitted, when the keyframe vector changes. | |
Public Member Functions | |
| ModelInputPictures (QString inputPath) | |
| ModelInputPictures Constructor, which uses inputPath to import the frames. | |
| ModelInputPictures () | |
| ModelInputPictures Constructor, which creates an empty class. toText can be used on this instance. | |
| void | addKeyframe (unsigned int index) |
| Sets the frame with index as a keyframe. | |
| bool | isKeyframe (unsigned int index) |
| Checks if the indexed frame is a keyframe. | |
| void | updateMIP (const std::vector< unsigned int > &keyframes) |
| Updates the indices of all keyframes. | |
| void | removeKeyframe (unsigned int index) |
| Removes the keyframe with the given index. | |
| const cv::Mat * | getPic (unsigned int index, Reader::PictureProcessingFlags flags=Reader::APPLY_NONE) |
| Returns the frame with the given index. | |
| unsigned int | getKeyframeCount (bool inBound) |
| Returns the number of keyframes. | |
| unsigned int | getPicCount () |
| Returns the number of frames. | |
| std::vector< unsigned int > | getAllKeyframes (bool inBound) |
| Returns the index vector containing the keyframes. | |
| std::shared_ptr< ReaderParams > | getReaderParams () |
| getReaderParams returns the parameters (working resolution, crop, etc.) used by the readers. | |
| unsigned int | getNextKeyframe (unsigned int index, unsigned int stepsize) |
| Returns the stepsize-next keyframe to a given index. | |
| unsigned int | getPreviousKeyframe (unsigned int index, unsigned int stepsize) |
| Returns the stepsize-next keyframe to a given index. | |
| QString | getPath () |
| Returns the input Path. | |
| Reader * | getReader () |
| Returns the current Reader as a DelayedCopyReader. | |
| ConcurrentReader * | createConcurrentReader () |
| createConcurrentReader creates an object from the class ConcurrentReader which can be used to access pictures in a parallel way | |
| QVariant | toText () override |
| Saves this class to a QVariant. | |
| void | fromText (QVariant data) override |
| Reades its members from the given QVariant. | |
| QPoint | getBoundaries () |
| Returns the current boundaries. | |
| void | setBoundaries (QPoint boundaries) |
| Set the current boundaries. | |
| int | loadMetaData (QStringList paths) |
| loadMetaData Loads the given meta data for the imported Video | |
| int | loadMetaDataImages () |
| loadMetaDataImages Tries to extract meta data from the imported images | |
The ModelInputPictures class is responsible for saving all the Data regarding the input. It implements the interface ISerializable to be able to save all its current Data.
|
explicit |
ModelInputPictures Constructor, which uses inputPath to import the frames.
| inputPath | Path to the file or directory to be opend |
| void ModelInputPictures::addKeyframe | ( | unsigned int | index | ) |
Sets the frame with index as a keyframe.
| index | Index of the Keyframe to be added |
| ConcurrentReader * ModelInputPictures::createConcurrentReader | ( | ) |
createConcurrentReader creates an object from the class ConcurrentReader which can be used to access pictures in a parallel way
|
overridevirtual |
Reades its members from the given QVariant.
| data | QVariant containing this class data |
Implements ISerializable.
| std::vector< unsigned int > ModelInputPictures::getAllKeyframes | ( | bool | inBound | ) |
Returns the index vector containing the keyframes.
| inBound | true: returns only the keyframes that are between the currently set boundaries false: returns all keyframes |
| QPoint ModelInputPictures::getBoundaries | ( | ) |
Returns the current boundaries.
| unsigned int ModelInputPictures::getKeyframeCount | ( | bool | inBound | ) |
Returns the number of keyframes.
| inBound | true: returns only the amount of keyframes between the currently set boundaries false: returns the total amount of keyframes |
| unsigned int ModelInputPictures::getNextKeyframe | ( | unsigned int | index, |
| unsigned int | stepsize | ||
| ) |
Returns the stepsize-next keyframe to a given index.
| index | Index of the current frame |
| stepsize | Number of keyframes to be skipped |
| QString ModelInputPictures::getPath | ( | ) |
Returns the input Path.
| const cv::Mat * ModelInputPictures::getPic | ( | unsigned int | index, |
| Reader::PictureProcessingFlags | flags = Reader::APPLY_NONE |
||
| ) |
Returns the frame with the given index.
| index | Index of the frame |
| unsigned int ModelInputPictures::getPicCount | ( | ) |
Returns the number of frames.
| unsigned int ModelInputPictures::getPreviousKeyframe | ( | unsigned int | index, |
| unsigned int | stepsize | ||
| ) |
Returns the stepsize-next keyframe to a given index.
| index | Index of the current frame |
| stepsize | Number of keyframes to be skipped |
| Reader * ModelInputPictures::getReader | ( | ) |
Returns the current Reader as a DelayedCopyReader.
| std::shared_ptr< ReaderParams > ModelInputPictures::getReaderParams | ( | ) |
getReaderParams returns the parameters (working resolution, crop, etc.) used by the readers.
| bool ModelInputPictures::isKeyframe | ( | unsigned int | index | ) |
Checks if the indexed frame is a keyframe.
| index | Index of the frame to be checked |
| int ModelInputPictures::loadMetaData | ( | QStringList | paths | ) |
loadMetaData Loads the given meta data for the imported Video
| path | Paths the the meta data to load |
| int ModelInputPictures::loadMetaDataImages | ( | ) |
loadMetaDataImages Tries to extract meta data from the imported images
| void ModelInputPictures::removeKeyframe | ( | unsigned int | index | ) |
Removes the keyframe with the given index.
| index | Index of the keyframe to be removed |
| void ModelInputPictures::setBoundaries | ( | QPoint | boundaries | ) |
Set the current boundaries.
| boundaries | The new boundaries |
|
overridevirtual |
Saves this class to a QVariant.
Implements ISerializable.
| void ModelInputPictures::updateMIP | ( | const std::vector< unsigned int > & | keyframes | ) |
Updates the indices of all keyframes.
| keyframes | Index vector with the indices of the keyframes |