SourceXtractorPlusPlus
0.15
Please provide a description of the project.
|
#include <LockedWriteableImage.h>
Public Member Functions | |
std::string | getRepr () const override |
Get a string identifying this image in a human readable manner. More... | |
int | getWidth () const override |
Returns the width of the image in pixels. More... | |
int | getHeight () const override |
Returns the height of the image in pixels. More... | |
void | setValue (int x, int y, T value) override |
std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
![]() | |
virtual | ~Image ()=default |
Destructor. More... | |
std::shared_ptr< ImageChunk< T > > | getChunk (const PixelCoordinate &start, const PixelCoordinate &end) const |
bool | isInside (int x, int y) const |
Returns true if the given coordinates are inside the image bounds. More... | |
Static Public Member Functions | |
template<typename... Args> | |
static std::shared_ptr < LockedWriteableImage< T > > | create (Args &&...args) |
Protected Member Functions | |
LockedWriteableImage (std::shared_ptr< WriteableImage< T >> img) | |
Private Attributes | |
std::shared_ptr < WriteableImage< T > > | m_img |
std::lock_guard< std::mutex > | m_lock |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
![]() | |
std::mutex | m_write_mutex |
Definition at line 18 of file LockedWriteableImage.h.
|
inlineprotected |
Definition at line 20 of file LockedWriteableImage.h.
|
inlinestatic |
Definition at line 25 of file LockedWriteableImage.h.
Referenced by SourceXtractor::CheckImages::getApertureImage(), SourceXtractor::CheckImages::getAutoApertureImage(), SourceXtractor::CheckImages::getGroupImage(), SourceXtractor::CheckImages::getModelFittingImage(), SourceXtractor::CheckImages::getMoffatImage(), SourceXtractor::CheckImages::getPartitionImage(), SourceXtractor::CheckImages::getPsfImage(), and SourceXtractor::CheckImages::getSegmentationImage().
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 45 of file LockedWriteableImage.h.
References SourceXtractor::LockedWriteableImage< T >::m_img.
|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 37 of file LockedWriteableImage.h.
References SourceXtractor::LockedWriteableImage< T >::m_img.
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 29 of file LockedWriteableImage.h.
References SourceXtractor::LockedWriteableImage< T >::m_img.
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 33 of file LockedWriteableImage.h.
References SourceXtractor::LockedWriteableImage< T >::m_img.
|
inlineoverridevirtual |
Implements SourceXtractor::WriteableImage< T >.
Definition at line 41 of file LockedWriteableImage.h.
References SourceXtractor::LockedWriteableImage< T >::m_img.
|
private |
Definition at line 50 of file LockedWriteableImage.h.
Referenced by SourceXtractor::LockedWriteableImage< T >::getChunk(), SourceXtractor::LockedWriteableImage< T >::getHeight(), SourceXtractor::LockedWriteableImage< T >::getRepr(), SourceXtractor::LockedWriteableImage< T >::getWidth(), and SourceXtractor::LockedWriteableImage< T >::setValue().
|
private |
Definition at line 51 of file LockedWriteableImage.h.