
Hi all, I would like to use thread with a member function which takes parameters. Here is the code I actually use : shared_ptr<Profile> p2 ( new Profile(origine+(double)i*width_sur_nb_fois_wdir,rect->GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) ); shared_ptr<Profile> p3 ( new Profile(origine+(double)(-i)*width_sur_nb_fois_wdir,rect->GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) ); p2->ComputeRadiometries(image_,BILINEAR); p3->ComputeRadiometries(image_,BILINEAR); ComputeRadiometries is a template member function : template <class T> bool ComputeRadiometries( boost::shared_ptr< TTImage <T>
image , const eInterpolatorType type_interpolator=BICUBIC )
This compiles fine :
boost::function , eInterpolatorType)> f; But, this does not :
f = &Profile::ComputeRadiometries;
I would like to use boost::bind in order to call ComputeRadiometries with a
thread.
Can you help ?
Regards
--
Le temps des cerises reviendra. Dans l'immédiat, c'est le temps des noyaux.
Courage.