NewImageWatcher

class NewImageWatcher

The watcher is subscribed to a Datastore by the AnalysisWorker, and then it informs the AnalysisWorker of any new images in the Datastore.

Author:Marcel Stefko

Constructors

NewImageWatcher

public NewImageWatcher(Object object_to_lock, AnalysisWorker thread_to_notify)

Methods

getLatestDatastore

public Datastore getLatestDatastore()

newImageAcquired

public void newImageAcquired(DataProviderHasNewImageEvent evt)

Notify the thread that new image is available and send it the coords.

Parameters:
  • evt – event containing coords

setLatestDatastore

public void setLatestDatastore(Datastore store)

Sets the latest datastore, and registers for its events.

Parameters:
  • store