|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cbr.bin.MakeIdx
Command line tool for generating picture indexes based on the CCV algorithm.
Field Summary | |
static String |
DESCR
|
protected PicsFinder |
finder_
|
protected ArgsParser |
p_
|
protected PicsSource |
source_
|
protected PicsStore |
store_
|
Constructor Summary | |
MakeIdx()
|
Method Summary | |
protected void |
addPictures()
Imports pictures from a directory into the index. |
protected void |
dumpThreads()
|
protected void |
find(File file)
Finds the images in the index that are most similar to the image in the given file. |
protected void |
findAll(File[] files)
Finds all images that match the images in the given files. |
protected void |
init()
Initializes an index. |
void |
list()
|
static void |
main(String[] argv)
|
protected void |
rank(File file)
|
protected void |
rank(File file,
int index)
Finds the images most similar to the image in the given file, and prints the rank of the image in the result set based on the image name. |
protected void |
rankAll(File[] files)
Ranks all images that match the images in the given files. |
void |
run(String[] argv)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DESCR
protected ArgsParser p_
protected PicsStore store_
protected PicsSource source_
protected PicsFinder finder_
Constructor Detail |
public MakeIdx()
Method Detail |
public static void main(String[] argv)
protected void init() throws Exception
-init
,
the index is created. Any previous data in the index
is lost.
Exception
protected void find(File file) throws IOException, ImageException, InterruptedException
file
- The image file with the query image.
IOException
ImageException
InterruptedException
protected void findAll(File[] files) throws IOException, ImageException, InterruptedException
files
- The image files.
IOException
ImageException
InterruptedException
protected void rank(File file) throws IOException, ImageException, InterruptedException
IOException
ImageException
InterruptedException
protected void rank(File file, int index) throws IOException, ImageException, InterruptedException
file
- The image file with the query image.index
- The index that is printed before the rank.
IOException
ImageException
InterruptedException
protected void rankAll(File[] files) throws IOException, ImageException, InterruptedException
files
- The image files.
IOException
ImageException
InterruptedException
protected void addPictures() throws Exception
Exception
protected void dumpThreads()
public void list() throws Exception
Exception
public void run(String[] argv) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |