{ "info": { "author": "Brett Graham", "author_email": "braingram720@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "A python interface to the rat brain atlas\n\nPurpose\n-------\nUsing the rat brain atlas...\n1) construct 3d point clouds of various brain regions\n2) lookup the area for a given location (ML, DV, AP coordinate)\n3) grab the containing section image for a given location\n4) plot a location on a flattened cortical surface\n\n\nInstallation details\n--------------------\nDue to copyright reasons, this module does not contain the eps files\nfrom the cd that comes with the rat brain atlas. These files are \nhowever required for the module to function.\n\nYou can either pass in the path of the eps files to the necessary\nfunctions (such as Section.__init__) or copy the eps files\n(of at least the coronal sections) to atlas/eps.\n\nHow to\n------\n\nget the section index for the containing section\n>>> pyatlas.py section 6.5 3.5 -7\n\nplot a location on a section (show and save the plot)\n>>> pyatlas.py section 6.5 3.5 -7 -ps\n\nget the area for a location\n>>> pyatlas.py area 6.5 3.5 -7\n\nget a point cloud of an area (saved to meshes/.asc) [takes a while]\n>>> pyatlas.py points V2L -m\n\nplot a location on a flattened cortex\n>>> pyatlas.py cortex 6.5 3.5 -7 -ps\n\nSeveral calls to plot on a flattened cortical surface will go much faster\nif the area points are recomputed like so\n>>> pyatlas.py area -p area.p\n>>> pyatals.py cortex -A area.p\n\n\nNotes\n-----\nthis is buggy and hacky as all heck\n\nwhat I wanted was to generate a 3d mesh of a selected brain area from a stack of labeled brain atlas images\n\nSteps:\n1) take eps files of a brain atlas\n2) find location of a selected area label within each eps file\n3) render eps file to bitmap format\n4) find pixels that correspond to the border of the selected area\n5) map image to brain coordinates\n6) output 3d brain coordinates for border of selected area at each slice\n7) use meshlab to generate mesh from points\n\nthis is terribly hacky and relied on:\n3) manually generating the mesh using ball-pivoting in meshlab\n\nwhat I would really like is to\n2) make a more flexible mapping for all atlas slices\n3) automatically generate mesh\n\nMeshlab\n-------\n1) load in a points file for an area (ex: V1.asc)\n2) simplify the points:\n Filter -> Cleaning -> Merge: ~.05 world units\n3) save as mesh (ex: .ply)\n4) reload\n3) mesh the points:\n Filter -> Remeshing -> Surface Reconstruction (ball pivoting): ~.5 world units (or .7 for V2L)\n5) close holes\n5) smooth:\n Filter -> Smoothing -> Laplace Smooth: 2 iterations\n6) save as mesh (ex: .ply)\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/braingram/atlas_to_mesh", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "brainatlas", "package_url": "https://pypi.org/project/brainatlas/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/brainatlas/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/braingram/atlas_to_mesh" }, "release_url": "https://pypi.org/project/brainatlas/1.0/", "requires_dist": null, "requires_python": null, "summary": "Rat brain atlas module", "version": "1.0" }, "last_serial": 787034, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "f4810e2abb849079cf5d78a9ef1aea97", "sha256": "9727bc99d51a5ac8be02965ef5345963c70a15355a87a9f0b20299dda95d69b2" }, "downloads": -1, "filename": "brainatlas-1.0.tar.gz", "has_sig": false, "md5_digest": "f4810e2abb849079cf5d78a9ef1aea97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14396, "upload_time": "2012-05-09T17:31:33", "url": "https://files.pythonhosted.org/packages/c7/63/9b7a650883d5ff91988cee2cbda0937db33065bb7a8fb9da9c8d1e5fac3d/brainatlas-1.0.tar.gz" } ], "dev": [ { "comment_text": "", "digests": { "md5": "2178c26fd790155874c2defd32b71557", "sha256": "9cb4ad27c7f4d640924dac9c3822a09230306cd0918bceb821d1af013ca0730f" }, "downloads": -1, "filename": "brainatlas-dev.tar.gz", "has_sig": false, "md5_digest": "2178c26fd790155874c2defd32b71557", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14406, "upload_time": "2012-05-09T17:30:08", "url": "https://files.pythonhosted.org/packages/a4/29/af407c43c0ded78ee6c7f534a4382a998e5da15472b1d1ad31109bc9afab/brainatlas-dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f4810e2abb849079cf5d78a9ef1aea97", "sha256": "9727bc99d51a5ac8be02965ef5345963c70a15355a87a9f0b20299dda95d69b2" }, "downloads": -1, "filename": "brainatlas-1.0.tar.gz", "has_sig": false, "md5_digest": "f4810e2abb849079cf5d78a9ef1aea97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14396, "upload_time": "2012-05-09T17:31:33", "url": "https://files.pythonhosted.org/packages/c7/63/9b7a650883d5ff91988cee2cbda0937db33065bb7a8fb9da9c8d1e5fac3d/brainatlas-1.0.tar.gz" } ] }