public class RandomPatchSampler<IMAGE extends Image<?,IMAGE>> extends Object implements Iterable<IMAGE>
Constructor and Description |
---|
RandomPatchSampler(Dataset<IMAGE> data,
int width,
int height,
int nsamples) |
Modifier and Type | Method and Description |
---|---|
List<IMAGE> |
getPatches() |
Iterator<IMAGE> |
iterator() |
static List<FImage> |
loadPatches(File file) |
static void |
main(String[] args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RandomPatchSampler(Dataset<IMAGE> data, int width, int height, int nsamples)
public List<IMAGE> getPatches()
public static List<FImage> loadPatches(File file) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException