nifti_user/ocu/src/Displays/ROSImageListener.cpp
void ROSImageListener::callback(const sensor_msgs::Image::ConstPtr& msg)
    {
        boost::recursive_mutex::scoped_lock lock(mutex_);
        latestImageMsgReceived = msg;
        hasReceivedNewImage = true;

        ++image_count_;
    }
/**
     * Stores a new image (update must be called to display it)
     * @param msg
     */
Stores a new image (update must be called to display it)
@param msg
Stores a new image ( update must be called to display it ) @param msg
void ROSImageListener::callback(const sensor_msgs::Image::ConstPtr& msg)
    {
        boost::recursive_mutex::scoped_lock lock(mutex_);
        latestImageMsgReceived = msg;
        hasReceivedNewImage = true;
        ++image_count_;
    }
void ROSImageListener :: callback ( const sensor_msgs :: Image :: ConstPtr & msg ) { boost :: recursive_mutex :: scoped_lock lock ( mutex_ ) ; latestImageMsgReceived = msg ; hasReceivedNewImage = true ; ++ image_count_ ; }
Stores a new image (update must be called to display it)
 @param msg
Stores a new image ( update must be called to display it ) @param msg