Search in sources :

Example 1 with PrefService

use of org.scijava.prefs.PrefService in project labkit-ui by juglab.

the class TrainableSegmentationSegmenter method setUseGpuPreference.

private void setUseGpuPreference(boolean useGpu) {
    PrefService prefService = context.service(PrefService.class);
    prefService.put(TrainableSegmentationSegmenter.class, "USE_GPU", useGpu);
}
Also used : PrefService(org.scijava.prefs.PrefService)

Aggregations

PrefService (org.scijava.prefs.PrefService)1