2nd part of the project – testing at the function level (part 2)

August 14, 2010 at 9:18 am | Posted in Uncategorized | Leave a comment

Thanks to my mentor I have a list of functions that Hugin is using. It allows me to focus on the most important part of the project – writing the tests. And here is the list if someone needs it:
CheckParams
DisposeAlignInfo
distSquared
erect_albersequalareaconic
erect_mercator
erect_pano
erect_rect
erect_sinusoidal
erect_sphere_tp
erect_stereographic
erect_transmercator
execute_stack_new
GetFullPath
getROI
horiz
inv_radial
mercator_erect
merge
myfree
operator&lt
pano_erect
panoProjectionFeaturesQuery
panoProjectionFormatCount
pano_sphere_tp
ParseScript
persp_rect
persp_sphere
PrintError
PT_setErrorFcn
PT_setInfoDlgFcn
PT_setProgressFcn
queryFOVLimits
radial
rect_erect
rect_sphere_tp
resize
rotate_erect
RunLMOptimizer
SetAdjustDefaults
SetCoordDefaults
SetCorrectDefaults
SetCorrectionRadius
SetGlobalPtr
SetImageDefaults
SetInvMakeParams
SetMakeParams
SetMatrix
SetOptDefaults
SetStitchDefaults
sinusoidal_erect
sphere_tp_erect
sphere_tp_pano
sphere_tp_rect
stereographic_erect
StringtoFullPath
transmercator_erect
vert
WriteResults

I also resigned from using Boost Test Library simply because ctest is already handling the most of BTL tasks (it also needs to install Boost library etc.). Not every element (function) from the list above is needed to be tested, but much of them is very important. So we concentrated on two essencial areas: math/projection and optimization. A list of tested functions (they are already added into svn and integrated with cmake/ctest):

– Optimizer related functions:
* CheckParams
* distSquared
* RunLMOptimizer (this is the main function)

– Math/projection related functions:
* transmercator_erect
* erect_transmercator
* stereographic_erect
* erect_stereographic
* sinusoidal_erect
* erect_sinusoidal
* rect_erect
* erect_rect
* pano_erect
* erect_pano
* mercator_erect
* erect_mercator
* sphere_tp_erect
* erect_sphere_tp
* sphere_tp_pano
* pano_sphere_tp
* sphere_tp_rect
* rect_sphere_tp



Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: