![]() |
KSquare Utilities
|
Creates a index of all images in a specified directory structure. More...
#include <ImageDirTree.h>
Public Member Functions | |
| ImageDirTree (KKStr _subDir) | |
| Construct a Index of images for a specified SubDirectory structure. details Given a specified directory '_subDir' will scan for all images in all sub-directories below it. More... | |
| ~ImageDirTree () | |
| KKStrListPtr | Directories (const KKStr &fileName) const |
| Returns list of directories that 'fileName' occurs in. More... | |
| KKStrConstPtr | LocateImage (const KKStr &fileName) |
| Locate image specified by 'fileName' and return the directory where it is located. More... | |
| kkuint32 | Size () |
| returns the number of image files found the sub-directory tree. More... | |
Creates a index of all images in a specified directory structure.
Given a SubDirectory Starting Point. Will create a list of all image files in the sub directory tree. This will allow us to quickly locate a image file by name. Originally developed it to help in the recalculation of feature data. Used in ImageFeaturesList.
Definition at line 22 of file ImageDirTree.h.
| ImageDirTree::ImageDirTree | ( | KKStr | _subDir | ) |
Construct a Index of images for a specified SubDirectory structure. details Given a specified directory '_subDir' will scan for all images in all sub-directories below it.
| [in] | _subDir | Sub Directory to search for image files. |
Definition at line 27 of file ImageDirTree.cpp.
References KKB::KKStr::KKStr().
Referenced by KKMLL::GrayScaleImagesFVList::RecalcFeatureValuesFromImagesInDirTree().
| ImageDirTree::~ImageDirTree | ( | ) |
Definition at line 35 of file ImageDirTree.cpp.
| KKStrListPtr ImageDirTree::Directories | ( | const KKStr & | fileName | ) | const |
Returns list of directories that 'fileName' occurs in.
The caller will own the list of directories and be responsible for deleting. if 'fileName' does not exist in the sub-directory structure then NULL will be returned.
| [in] | fileName | Name of image file that is being searched for. |
Definition at line 133 of file ImageDirTree.cpp.
References KKB::KKStrList::KKStrList().
| KKStrConstPtr ImageDirTree::LocateImage | ( | const KKStr & | fileName | ) |
Locate image specified by 'fileName' and return the directory where it is located.
| [in] | fileName | Image File you are searching for. |
Definition at line 116 of file ImageDirTree.cpp.
Referenced by KKMLL::GrayScaleImagesFVList::RecalcFeatureValuesFromImagesInDirTree().
|
inline |
returns the number of image files found the sub-directory tree.
Definition at line 43 of file ImageDirTree.h.
Referenced by KKMLL::GrayScaleImagesFVList::RecalcFeatureValuesFromImagesInDirTree().