News
Members
Publications
Software / Data
Job offers
Images / Videos
Collaborations
Conferences
Lab meetings: "Les partages de midi"
Practical information
Members Area
Next conferences we are in …
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
playground:playground [2009/04/15 15:51] oelganao |
playground:playground [2012/10/13 13:25] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== PlayGround ====== | ====== PlayGround ====== | ||
- | ====== Bac à sable ====== | ||
- | |||
- | LOL :-) | ||
- | |||
- | FIXME | ||
- | |||
- | ===== Listings de code ===== | ||
- | |||
- | |||
- | ==== Exemple de listing python ==== | ||
- | |||
- | <code python> | ||
- | |||
- | import os | ||
- | import sys | ||
- | |||
- | class Test: | ||
- | #Constructeur | ||
- | def __init__(self): | ||
- | self.test = 'test' | ||
- | #Methode show | ||
- | def show(self): | ||
- | print self.test | ||
- | |||
- | #Main du script | ||
- | if __name__ == '__main__': | ||
- | t = Test() | ||
- | t.show() | ||
- | </code> | ||
- | |||
- | |||
- | |||
- | ==== Exemple de listing c++ ==== | ||
- | <code cpp> | ||
- | |||
- | #include <time.h> | ||
- | |||
- | int main() | ||
- | { | ||
- | |||
- | clock_t tStart=clock(); | ||
- | { | ||
- | // Ici on met le code a mesurer | ||
- | | ||
- | } | ||
- | |||
- | clock_t tFinish=clock(); | ||
- | |||
- | std::cout<<"Time: "<<(tFinish-tStart)/((double) CLOCKS_PER_SEC)<<std::endl; | ||
- | return 0; | ||
- | } | ||
- | |||
- | </code> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== Exemple de listing CMake ==== | ||
- | <code cmake> | ||
- | #Test de project template | ||
- | project(Template) | ||
- | FindITK() | ||
- | set(MYPROJECT "MyNewPoject" CACHE STRING "Fill in the name of the project") | ||
- | configure_file(${Template_SOURCES_DIR}/CMakeLists.txt.in ${Template_BINARY_DIR}/CMakeLists.txt) | ||
- | </code> | ||
- | ===== Exemple de BibTex ===== | ||
- | |||
- | <bibtex> | ||
- | @article{Coupe08a, | ||
- | Author = {Coupé, P. and Hellier, P. and Prima, S. and Kervrann, C. and Barillot, C.}, | ||
- | Title = {3D Wavelet Sub-Bands Mixing for Image Denoising}, | ||
- | Journal = {International Journal of Biomedical Imaging}, | ||
- | url={http://www.irisa.fr/visages/publi/publi/Coupe08a-fra.html}, | ||
- | Year = {2008} | ||
- | } | ||
- | @Book{BookAmbroise2004, | ||
- | author = {G.J. McLachlan and K.A. Do and C. Ambroise}, | ||
- | title = {Analyzing microarray gene expression data}, | ||
- | publisher = {Wiley}, | ||
- | url={http://www.amazon.com/exec/obidos/tg/detail/-/0471226165/qid=1128710740/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/002-9543089-9105613?v=glance&s=books&n=507846}, | ||
- | year = 2004 | ||
- | } | ||
- | @conference{lalys09, | ||
- | author = {Florent Lalys and Claire Haegelen and Alexandre Abadie and Pierre | ||
- | Jannin}, | ||
- | editor = {Michael I. Miga and Kenneth H. Wong}, | ||
- | title = {Post-operative assessment in Deep Brain Stimulation based on | ||
- | multimodal images: registration workflow and validation}, | ||
- | publisher = {SPIE}, | ||
- | year = {2009}, | ||
- | journal = {Medical Imaging 2009: Visualization, Image-Guided Procedures, and | ||
- | Modeling}, | ||
- | volume = {7261}, | ||
- | number = {1}, | ||
- | numpages = {10}, | ||
- | pages = {72612M}, | ||
- | location = {Lake Buena Vista, FL, USA}, | ||
- | doi = {10.1117/12.810475} | ||
- | } | ||
- | </bibtex> |