public void assureLowerCaseAndSift() { addReport("Renaming image filename extensions to lowercase"); imageManager.batchRenameImagesToLowerCase(images); addReport("Computing SIFT if not computed before"); for (Image image : images) { if (!imageManager.hasSift(image)) { imageManager.performSift(image); } } }
public void loadExifInformation() { addReport("Loading focal information"); for (Image image : images) { imageManager.loadExifInformation(image); } }
/** * -------------------------------------------------------------------- Core logic * -------------------------------------------------------------------- */ public void loadImagesFromDirectory(String directory) { images = new LinkedList<Image>(); images.addAll(imageManager.loadImagesFromDirectory(directory, false)); imageDirectory = directory; outputDirectory = new File(directory, "bundler").getPath(); }
public void stop() { if (isRunning) { addReport("SfM stopped"); isRunning = false; thread.interrupt(); if (bundlerProcess != null) { bundlerProcess.destroy(); } for (Process process : imageManager.getActiveProcesses()) { process.destroy(); } } }