Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
BufferedImageGenerator Class ReferenceReceives camera frames as they are loaded by the simulator -- or eventually other sources. More...
Inheritance diagram for BufferedImageGenerator:
Detailed DescriptionReceives camera frames as they are loaded by the simulator -- or eventually other sources. Definition at line 9 of file BufferedImageGenerator.h.
Constructor & Destructor Documentation
constructor Definition at line 35 of file BufferedImageGenerator.h.
destructor Definition at line 48 of file BufferedImageGenerator.h.
don't call Member Function Documentation
calculates the x-derivative Definition at line 404 of file BufferedImageGenerator.cc. Referenced by calcDxDy(), and calcImage().
calculates the diagonal derivative Definition at line 452 of file BufferedImageGenerator.cc. Referenced by calcImage().
calculates the x-derivative Definition at line 427 of file BufferedImageGenerator.cc. Referenced by calcDxDy(), and calcImage().
should calculate new image data, called by getImage() only when imageValids indicates the image being requested is dirty (and only after getImage() has already called createImageCache()) This is where you'll want to put your user-specific code for calculating the image data Implements FilterBankGenerator. Definition at line 254 of file BufferedImageGenerator.cc.
create new image data storage area for the cache - this called by getImage() only when the corresponding entry in images is NULL You should return the pointer you want stored in images to be returned by any calls to getFirstRow. Interpretation of the data it points to is dependant on the the generator which creates it Implements FilterBankGenerator. Definition at line 235 of file BufferedImageGenerator.cc. Referenced by downsampleImage(), and loadBuffer().
deletes the arrays Reimplemented from FilterBankGenerator. Definition at line 316 of file BufferedImageGenerator.cc. Referenced by ~BufferedImageGenerator().
default implementation does a few common housekeeping chores for you - probably should just take a look at its code It doesn't throw any events for you - that's probably the main reason you'd still want to override it Reimplemented from FilterBankGenerator. Definition at line 13 of file BufferedImageGenerator.cc.
need to override EventGeneratorBase's lazy listening -- as a root stage, need to remember each frame, just in case it might be used Reimplemented from EventGeneratorBase. Definition at line 51 of file BufferedImageGenerator.h.
averages blocks of pixels to make smaller images Definition at line 369 of file BufferedImageGenerator.cc. Referenced by calcImage().
deletes storage of cached images and marks it invalid you should override this if the images cache pointer isn't actually an array of bytes... Don't forget to call it in your subclass's destructor or your version won't get called... Reimplemented from FilterBankGenerator. Definition at line 219 of file BufferedImageGenerator.cc. Referenced by doEvent().
The loadBuffer() functions of the included subclasses aren't tested, so don't assume they'll work without a little debugging... Reimplemented from FilterBankGenerator. Definition at line 77 of file BufferedImageGenerator.cc. Referenced by saveFileStream().
marks all of the cached images as invalid (but doesn't free their memory) You probably want to call this right before you send the FilterBankEvent Reimplemented from FilterBankGenerator. Definition at line 226 of file BufferedImageGenerator.cc. Referenced by doEvent().
The loadBuffer() functions of the included subclasses aren't tested, so don't assume they'll work without a little debugging... Reimplemented from FilterBankGenerator. Definition at line 85 of file BufferedImageGenerator.cc.
don't call
The loadBuffer() functions of the included subclasses aren't tested, so don't assume they'll work without a little debugging... Reimplemented from FilterBankGenerator. Definition at line 110 of file BufferedImageGenerator.cc. Referenced by saveFileStream().
overrridden to allow saving direct to file without an extra buffer copy Reimplemented from LoadSave. Definition at line 151 of file BufferedImageGenerator.cc.
resets width and height parameters to that of the src You'll probably want to override this to also set skips and strides Reimplemented from FilterBankGenerator. Definition at line 283 of file BufferedImageGenerator.cc. Referenced by doEvent(), and setNumImages().
resizes the filter bank information storage area, you should override this to do your setup and call it from your constructor In general, it isn't expected that FilterBankGenerator's should necessarily be dynamically resizeable (although it would be nice), which is why this isn't public. If yours is, just add some pubic accessor functions which call this. In general, the included subclasses should be able to handle being resized, but there's no reason to do so since the system won't be changing its available resolutions at run time. The default implementation is a no-op if(numLayers==nLayers && numChannels==nChannels) Reimplemented from FilterBankGenerator. Definition at line 323 of file BufferedImageGenerator.cc. Referenced by BufferedImageGenerator().
duplicates pixels to make a higher resolution version of srcLayer, chan into destLayer, chan Doesn't do anything fancy like blurring or smoothing Definition at line 336 of file BufferedImageGenerator.cc. Referenced by calcImage(). Member Data Documentation
the data storage of the current image (not the image itself, but meta data a pointer to it) Definition at line 85 of file BufferedImageGenerator.h. Referenced by calcImage(), createImageCache(), doEvent(), downsampleImage(), setDimensions(), and upsampleImage().
for each image in the filterbank, a bool to account whether the pointer is to an external resource or a self-allocated resource Definition at line 86 of file BufferedImageGenerator.h. Referenced by createImageCache(), destruct(), doEvent(), freeCaches(), invalidateCaches(), and setNumImages(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:05 2016 by Doxygen 1.6.3 |