Skip to content

Instantly share code, notes, and snippets.

@f-akazawa
Created May 4, 2016 08:02
Show Gist options
  • Save f-akazawa/d08976b0c2de2392b06c7cbc68318ed9 to your computer and use it in GitHub Desktop.
Save f-akazawa/d08976b0c2de2392b06c7cbc68318ed9 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"showing info https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml\n"
]
}
],
"source": [
"import nltk\n",
"nltk.download()\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"*** Introductory Examples for the NLTK Book ***\n",
"Loading text1, ..., text9 and sent1, ..., sent9\n",
"Type the name of the text or sentence to view it.\n",
"Type: 'texts()' or 'sents()' to list the materials.\n",
"text1: Moby Dick by Herman Melville 1851\n",
"text2: Sense and Sensibility by Jane Austen 1811\n",
"text3: The Book of Genesis\n",
"text4: Inaugural Address Corpus\n",
"text5: Chat Corpus\n",
"text6: Monty Python and the Holy Grail\n",
"text7: Wall Street Journal\n",
"text8: Personals Corpus\n",
"text9: The Man Who Was Thursday by G . K . Chesterton 1908\n"
]
}
],
"source": [
"from nltk.book import *"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"7.833333333333333"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(text6)/len(set(text6))"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"[(':', 1197),\n",
" ('.', 816),\n",
" ('!', 801),\n",
" (',', 731),\n",
" (\"'\", 421),\n",
" ('[', 319),\n",
" (']', 312),\n",
" ('the', 299),\n",
" ('I', 255),\n",
" ('ARTHUR', 225)]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from nltk import FreqDist\n",
"fdist = FreqDist(text6)\n",
"fdist.most_common(10)\n"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"18"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from nltk import bigrams\n",
"trigrams = bigrams(text6)\n",
"trigramDist = FreqDist(trigrams)\n",
"trigramDist[('Sir','Robin')]"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Cookie is set to:\n",
"{'ml_langname': 'en_utf8', 'ml_lang': 'en', 'PHPSESSID': 'v4d13buoh5phaa12vqsp1956g5'}\n",
"---------\n",
"Going to main page\n",
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n",
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n",
"<head>\n",
"<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n",
"<meta http-equiv=\"content-language\" content=\"en\" />\n",
"<meta name=\"robots\" content=\"index,follow\" />\n",
"<meta name=\"keywords\" content=\"xoonips, xoops, neuroinformatics, visiom, visiome, visual science, digital research resource archive, mathematical model, experimental stimulus, experimental data, analytical tools, riken, bsi, jnode, incf, visual system, cones, cone, rods, rod, \n",
"spectrum, turtle, circadian, color transparency, MST model, \n",
"Hodgkin-Huxley Model, binocular, monocular, Traub model, \n",
"retina retinal, phase, photoreceptor, FFT, multichannel \n",
"recording, insect vision, compound eye\" />\n",
"<meta name=\"description\" content=\"Visiome Platform\" />\n",
"<meta name=\"rating\" content=\"general\" />\n",
"<meta name=\"author\" content=\"RIKEN BSI Neuroinformatics Japan Center\" />\n",
"<meta name=\"copyright\" content=\"Copyright (cc) 2005-2011\" />\n",
"\n",
"<title>2D Gabor Wavelet Transform and Inverse Transform (Reconstruction) Demo using Matlab - Visiome Platform</title>\n",
"\n",
"<link rel=\"shortcut icon\" href=\"https://visiome.neuroinf.jp/themes/visiome/favicon.ico\" type=\"image/vnd.microsoft.icon\" />\n",
"<link rel=\"icon\" href=\"https://visiome.neuroinf.jp/themes/visiome/favicon.ico\" type=\"image/vnd.microsoft.icon\" /> \n",
"<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"https://visiome.neuroinf.jp/xoops.css\" />\n",
"<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"https://visiome.neuroinf.jp/themes/visiome/style.css\" />\n",
"\n",
"<!-- RMV: added module header -->\n",
"<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />\n",
"\n",
"<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\" />\n",
"\n",
"<!-- google analytics -->\n",
"<script type=\"text/javascript\">\n",
"\n",
" var _gaq = _gaq || [];\n",
" _gaq.push(['_setAccount', 'UA-2787276-1']);\n",
" _gaq.push(['_trackPageview']);\n",
"\n",
" (function() {\n",
" var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n",
" ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n",
" var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n",
" })();\n",
"\n",
"</script>\n",
"\n",
"<script type=\"text/javascript\" src=\"https://visiome.neuroinf.jp/themes/visiome/xoonips_theme.js\"></script>\n",
"<script type=\"text/javascript\">\n",
"<!--\n",
"//--></script><script type=\"text/javascript\" src=\"https://visiome.neuroinf.jp/include/xoops.js\"></script><script type=\"text/javascript\"><!--\n",
"xoonips_cookie = new XooNIpsThemeJS.Cookie( false, false, 0, false );\n",
"xoonips_leftcolumn = new XooNIpsThemeJS.ResizableColumn( 'left', 'leftcolumn', 'leftResizeBar', xoonips_cookie, 'left' );\n",
"xoonips_rightcolumn = new XooNIpsThemeJS.ResizableColumn( 'right', 'rightcolumn', 'rightResizeBar', xoonips_cookie, 'right' );\n",
"//-->\n",
"</script>\n",
"\n",
"</head>\n",
"<body>\n",
"\n",
"<!-- header start -->\n",
"<table id=\"header_bar\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" summary=\"header\">\n",
" <tr>\n",
" <td id=\"logo\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/header01.gif\" alt=\"Visiome Platform\" width=\"250\" height=\"80\" /></td>\n",
" <td rowspan=\"3\" id=\"menu_bar\"> <table cellspacing=\"0\" cellpadding=\"0\" summary=\"navi\">\n",
" <tr>\n",
" <td style=\"width:100%; \"></td>\n",
" <td class=\"menu_img\" width=\"75\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/h_home.gif\" alt=\"Home\" width=\"75\" height=\"80\" border=\"0\" usemap=\"#home\"/><br />\n",
" <a href=\"https://visiome.neuroinf.jp\">Home</a></td>\n",
" <td class=\"menu_img\" width=\"75\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/h_login.gif\" alt=\"Login\" width=\"75\" height=\"80\" border=\"0\" usemap=\"#login\" /><br />\n",
" <a href=\"https://visiome.neuroinf.jp/modules/xoonips/user.php\">Login</a></td>\n",
" <td class=\"menu_img\" width=\"75\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/h_question.gif\" alt=\"Help\" width=\"75\" height=\"80\" border=\"0\" usemap=\"#Help\" /><br />\n",
" <a href=\"http://xoonips.sourceforge.jp/manuals/usersman-en/index.html\" target=\"_blank\">Help</a></td>\n",
" \n",
" <td class=\"menu_img\" width=\"75\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/h_mail.gif\" alt=\"Contact us\" width=\"75\" height=\"80\" border=\"0\" usemap=\"#Contact\" /><br />\n",
" <a href=\"mailto:committee@visiome.neuroinf.jp\">Contact us</a>\n",
" </td>\n",
" <td class=\"menu_img\" width=\"175\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/header02.gif\" width=\"175\" height=\"80\" alt=\"|\" />\n",
" <a href=\"/modules/xoonips/detail.php?item_id=6894&amp;ml_lang=ja\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/mlang_japanese.gif\" alt=\"Japanese\" style=\"border:1px solid black;\"/></a>\n",
" <a href=\"/modules/xoonips/detail.php?item_id=6894&amp;ml_lang=en\"><img src=\"https://visiome.neuroinf.jp/themes/visiome/images/mlang_english.gif\" alt=\"English\" style=\"border:1px solid black;\"/></a>\n",
" </td>\n",
" </tr>\n",
" </table>\n",
"\t \t<map name=\"home\" id=\"home\"><area shape=\"circle\" coords=\"37,63,17\" href=\"https://visiome.neuroinf.jp\" title=\"Home\" alt=\"Home\" /></map>\n",
"\t\t<map name=\"login\" id=\"login\"><area shape=\"circle\" coords=\"37,63,17\" href=\"https://visiome.neuroinf.jp/modules/xoonips/user.php\" title=\"Login\" alt=\"Login\" /></map>\n",
"\t\t<map name=\"Help\" id=\"Help\"><area shape=\"circle\" coords=\"37,63,17\" href=\"http://xoonips.sourceforge.jp/manuals/usersman-en/index.html\" title=\"Help\" alt=\"Help\" target=\"_blank\" /></map>\n",
"\t\t\n",
"\t\t<map name=\"Contact\" id=\"Contact\"><area shape=\"circle\" coords=\"37,63,17\" href=\"mailto:committee@visiome.neuroinf.jp\" title=\"Contact us\" alt=\"Contact us\" /></map>\n",
"\t \t</td></tr>\n",
" <tr>\n",
" <td id=\"msg\">Login as <span class=\"l_name\">Guest</span></td>\n",
" </tr>\n",
"</table>\n",
"<!-- header end -->\n",
"<!-- Content area start -->\n",
"<table cellspacing=\"0\" summary=\"main_content\">\n",
"\t<tr>\n",
"\t\t<td id=\"leftcolumn\" >\n",
"\t\t\t\t\t\t\t\t\t\t\t <div class=\"blockTitle\">Select Language</div>\n",
"\t\t\t\t\t\t\t\t<div class=\"blockContent\"><script type='text/javascript'>\n",
"<!--\n",
"function SelLang_jumpMenu(targ,selObj,restore){\n",
"eval(targ+\".location='/modules/xoonips/detail.php?item_id=6894&ml_lang=\"+selObj.options[selObj.selectedIndex].value+\"'\");\n",
"if (restore) selObj.selectedIndex=0;\n",
"}\n",
"-->\n",
"</script><div align=\"center\"><select name=\"ml_lang\" onchange=\"SelLang_jumpMenu('parent',this,0)\"><option value=\"ja\">Japanese</option><option value=\"en\" selected=\"selected\">English</option></select></div></div>\n",
"\t\t\t\t<br />\n",
"\t\t\t\t\t\t\t\t\t\t\t <div class=\"blockTitle\">XooNIps Search</div>\n",
"\t\t\t\t\t\t\t\t<div class=\"blockContent\">\n",
"<form style=\"margin-top: 0px;\" action=\"https://visiome.neuroinf.jp/modules/xoonips/itemselect.php\" method=\"get\">\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
" <input type=\"hidden\" name=\"op\" value=\"quicksearch\"/>\n",
" <input type=\"text\" name=\"keyword\" size=\"16\" value=\"\"/>\n",
" <select name=\"search_itemtype\">\n",
" <option label=\"ALL\" value=\"all\">ALL</option>\n",
"<option label=\"Title &amp; Keyword\" value=\"basic\">Title &amp; Keyword</option>\n",
"<option label=\"Metadata\" value=\"metadata\">Metadata</option>\n",
"<option label=\"Binder\" value=\"xnpbinder\">Binder</option>\n",
"<option label=\"Model\" value=\"xnpmodel\">Model</option>\n",
"<option label=\"Data\" value=\"xnpdata\">Data</option>\n",
"<option label=\"Stimulus\" value=\"xnpstimulus\">Stimulus</option>\n",
"<option label=\"Tool\" value=\"xnptool\">Tool</option>\n",
"<option label=\"Presentation\" value=\"xnppresentation\">Presentation</option>\n",
"<option label=\"Paper\" value=\"xnppaper\">Paper</option>\n",
"<option label=\"Book\" value=\"xnpbook\">Book</option>\n",
"<option label=\"Url\" value=\"xnpurl\">Url</option>\n",
"\n",
" </select>\n",
" <input class=\"formButton\" type=\"submit\" value=\"Search\"/>\n",
" &nbsp;&nbsp;\n",
" <a href=\"https://visiome.neuroinf.jp/modules/xoonips/advanced_search.php\">Advanced</a>\n",
"</form></div>\n",
"\t\t\t\t<br />\n",
"\t\t\t\t\t\t\t\t\t\t\t <div class=\"blockTitle\">Index Tree</div>\n",
"\t\t\t\t\t\t\t\t<div class=\"blockContent\"><script type=\"text/javascript\">\n",
"<!--\n",
"\n",
"var xoonipsDocTreeView = 0;\n",
"\n",
"function xoonipsGetDocTreeView(){\n",
"\tvar treeFrames = window.document.getElementsByName( 'treeFrame' );\n",
"\tif ( treeFrames.length == 1 ){\n",
"\t\tvar treeFrame = treeFrames.item(0);\n",
"\t\txoonipsDocTreeView = treeFrame.contentDocument;\n",
"\t}\n",
"\t\n",
"\tif ( xoonipsDocTreeView == undefined ){ // for IE\n",
"\t\txoonipsDocTreeView = window.document.treeFrame.document;\n",
"\t}\n",
"}\n",
"\n",
"function xoonipsOpenAll(){\n",
" if ( xoonipsDocTreeView == 0 )\n",
" xoonipsGetDocTreeView();\n",
" var treeHere = xoonipsDocTreeView.getElementById('xoonipsTreeHere');\n",
" if ( treeHere )\n",
" treeHere.openAll();\n",
"}\n",
"\n",
"function xoonipsCloseAll(){\n",
" if ( xoonipsDocTreeView == 0 )\n",
" xoonipsGetDocTreeView();\n",
" var treeHere = xoonipsDocTreeView.getElementById('xoonipsTreeHere');\n",
" if ( treeHere )\n",
" treeHere.closeAll();\n",
"}\n",
"\n",
"function xoonipsClearCheck(){\n",
" if ( xoonipsDocTreeView == 0 )\n",
" xoonipsGetDocTreeView();\n",
" var treeHere = xoonipsDocTreeView.getElementById('xoonipsTreeHere');\n",
" if ( treeHere )\n",
" treeHere.clearCheck();\n",
"}\n",
"\n",
"function xoonipsOpenTab(index_id){\n",
" var id = 'xoonipsTab' + index_id;\n",
" if ( xoonipsDocTreeView == 0 )\n",
" xoonipsGetDocTreeView();\n",
" var xoonipsTreeHere = xoonipsDocTreeView.getElementById('xoonipsTreeHere');\n",
" var tops = new Array();\n",
" tops[1-1] = 3;\n",
" for ( i = 0; i < tops.length; i++ ){\n",
" var xid = tops[i];\n",
" var name = 'xoonipsTab' + xid;\n",
" var la = window.document.getElementById( name +'a' );\n",
" var lb = window.document.getElementById( name +'b' );\n",
" var lc = window.document.getElementById( name +'c' );\n",
" var ld = window.document.getElementById( name +'d' );\n",
" var le = window.document.getElementById( name +'e' );\n",
" var lf = window.document.getElementById( name +'f' );\n",
" var l = window.document.getElementById( name );\n",
" if ( index_id == xid ){\n",
" la.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/a1.gif)\";\n",
" lb.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/b1.gif)\";\n",
" lc.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/c1.gif)\";\n",
" ld.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/d1.gif)\";\n",
" le.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/e1.gif)\";\n",
" lf.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/f1.gif)\";\n",
" l .style.zIndex=1;\n",
" if ( xoonipsTreeHere )\n",
" xoonipsTreeHere.selectTab( xid );\n",
" }\n",
" else {\n",
" la.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/a0.gif)\";\n",
" lb.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/b0.gif)\";\n",
" lc.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/c0.gif)\";\n",
" ld.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/d0.gif)\";\n",
" le.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/e0.gif)\";\n",
" lf.style.backgroundImage = \"url(https://visiome.neuroinf.jp/modules/xoonips/images/f0.gif)\";\n",
" l .style.zIndex=0;\n",
" }\n",
" }\n",
" return false;\n",
"}\n",
"\n",
"document.xoonipsOpenTab = xoonipsOpenTab;\n",
"\n",
"//-->\n",
"</script>\n",
"<div style=\"border: 0px solid #b7d0d5; padding: 0px; margin: 0px; width: 100%;\">\n",
"<div style=\"float: none; clear: both; margin: 0px 0px 3px 0px; padding: 0px;\">\n",
"<button class=\"formButton\" onclick=\"xoonipsOpenAll();\">open all</button>\n",
"<button class=\"formButton\" onclick=\"xoonipsCloseAll();\">close all</button>\n",
"</div>\n",
"<div style=\"margin: 0px; padding: 0px;\" id=\"xoonips_tree_tab\">\n",
" <table id=\"xoonipsTab3\" cellspacing=\"0\" style=\"display: inline; border-collapse: separate; border-spacing: 0px; width: auto; margin: 0px -1px; position: relative; z-index: 0;\">\n",
" <tr>\n",
" <td id=\"xoonipsTab3a\" style=\"background-image: url(https://visiome.neuroinf.jp/modules/xoonips/images/a1.gif); width: 5px; height: 3px;\"></td>\n",
" <td id=\"xoonipsTab3b\" style=\"background-image: url(https://visiome.neuroinf.jp/modules/xoonips/images/b1.gif); width: auto;\"></td>\n",
" <td id=\"xoonipsTab3c\" style=\"background-image: url(https://visiome.neuroinf.jp/modules/xoonips/images/c1.gif); width: 6px; height: 3px;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td id=\"xoonipsTab3d\" style=\"background-image: url(https://visiome.neuroinf.jp/modules/xoonips/images/d1.gif); width: 5px;\"></td>\n",
" <td id=\"xoonipsTab3e\" style=\"background-image: url(https://visiome.neuroinf.jp/modules/xoonips/images/e1.gif); width: auto;\"><a href=\"#\" onclick=\"return xoonipsOpenTab('3')\">Public</a>\n",
" <input type=\"hidden\" name=\"xoonipsTabId\" value=\"3\"/>\n",
" </td>\n",
" <td id=\"xoonipsTab3f\" style=\"background-image: url(https://visiome.neuroinf.jp/modules/xoonips/images/f1.gif); width: 6px;\"></td>\n",
" </tr>\n",
" </table>\n",
"</div>\n",
"<div style=\"border-bottom: 1px solid #404040; border-right: 1px solid #404040;\">\n",
"<div style=\"border-top: 1px solid #e4e4e4; border-left: 1px solid #e4e4e4;\n",
" border-bottom: 1px solid #858585; border-right: 1px solid #858585; padding: 0px; margin: 0px;\">\n",
"<iframe src=\"https://visiome.neuroinf.jp/modules/xoonips/tree.php?\" \n",
" name=\"treeFrame\"\n",
" width=\"100%\" height=\"400\" \n",
" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" scrolling=\"auto\">\n",
"To view this page, your browser must support inline frames.\n",
"</iframe>\n",
"</div>\n",
"</div>\n",
"\n",
"</div></div>\n",
"\t\t\t\t<br />\n",
"\t\t\t\t\t\t\t\t\t\t\t <div class=\"blockTitle\">Site Information</div>\n",
"\t\t\t\t\t\t\t\t<div class=\"blockContent\"><table cellspacing=\"0\">\n",
" <tr>\n",
" <td id=\"mainmenu\">\n",
" <!-- start module menu loop -->\n",
" <a class=\"menuTop\" href=\"https://visiome.neuroinf.jp/modules/credits/index.php?id=1\">Instructions for Use</a>\n",
" <a class=\"menuMain\" href=\"https://visiome.neuroinf.jp/modules/credits/index.php?id=2\">Copyrights</a>\n",
" <a class=\"menuMain\" href=\"https://visiome.neuroinf.jp/modules/credits/index.php?id=3\">Privacy Policy</a>\n",
" <a class=\"menuMain\" href=\"https://visiome.neuroinf.jp/modules/credits/aboutus.php\">About us</a>\n",
" <!-- end module menu loop -->\n",
" </td>\n",
" </tr>\n",
"</table></div>\n",
"\t\t\t\t<br />\n",
"\t\t\t\t\t</td>\n",
"\t\t<td id=\"leftResizeBar\" rowspan=\"2\" style=\"width: 1px;\"></td>\n",
"\t\t<td rowspan=\"2\" style=\"width:15px;\">\n",
"\t\t\t<img src=\"https://visiome.neuroinf.jp/themes/visiome/images/spacer.gif\" alt=\".\" width=\"15\" height=\"1\" />\n",
"\t\t</td>\n",
"\t\t<td id=\"centercolumn\"><br />\n",
"\t\t\t\t\t\t<div id=\"content\"><h3>Detail</h3>\n",
"\n",
"\n",
"<script type=\"text/javascript\">\n",
"//<![CDATA[\n",
"function delete_confirm(){\n",
" if(confirm(\"Are you sure you want to permanently delete this item from the database?\"))\n",
" document.delete_item.submit();\n",
"}\n",
"function xoonips_certify_confirm(xids, item_id, op){\n",
" var message;\n",
" if ( op == 'accept_certify' )\n",
" message = \"Would you like to accept this item?\";\n",
" else if ( op == 'reject_certify' )\n",
" message = \"Are you sure you want to reject this item from the Public space?\";\n",
" else if ( op == 'withdraw' )\n",
" message = \"Are you sure you want to withdraw this item from the Public space?\";\n",
" else\n",
" return;\n",
" var form = document.getElementById('xoonips_certify_form');\n",
" for ( var i = 0; i < xids.length; i++ ){\n",
" var element = document.createElement( 'INPUT' );\n",
" element.type = 'hidden';\n",
" element.name = 'index_ids[]';\n",
" element.value = xids[i];\n",
" form.appendChild(element);\n",
" }\n",
" form.item_id.value=item_id;\n",
" form.op.value=op;\n",
" if(confirm(message))\n",
" form.submit();\n",
"}\n",
"\n",
"function add_input( form, name, value ){\n",
" var node = document.createElement('INPUT');\n",
" node.type = 'hidden'; node.name = name; node.value = value;\n",
" form.appendChild(node);\n",
" return node;\n",
"}\n",
"\n",
"function submit_edit_form(){\n",
" var form = document.getElementById('xoonips_edit_form');\n",
" var sel = document.getElementById('add_to_index_id_sel');\n",
" if ( form == null || sel == null )\n",
" return;\n",
" \n",
" if ( !form.add_to_index_id ){ /* avoid doubling add_input() */\n",
" form.action = 'confirm_edit.php';\n",
" form.method = 'post';\n",
" var node = add_input( form, 'add_to_index_id', '' );\n",
" add_input( form, 'op', 'add_to_public' );\n",
" add_input( form, 'item_id', 6894 );\n",
" if ( !form.add_to_index_id )\n",
" form.add_to_index_id = node;\n",
" }\n",
" form.add_to_index_id.value = sel.options[sel.selectedIndex].value;\n",
" \n",
" form.submit();\n",
"}\n",
"\n",
"function xoonips_download_button_change( type, file_id ) {\n",
" var img = document.getElementById( 'xoonips_download_button_' + file_id );\n",
" var mode = 'none';\n",
" // initilize\n",
" if ( typeof img.attrib_init == 'undefined' ) {\n",
" img.attrib_focus = 0;\n",
" img.attrib_down = 0;\n",
" img.attrib_init = 1;\n",
" }\n",
" switch ( type ) {\n",
" case 'focus':\n",
" if ( img.attrib_down == 0 ) {\n",
" img.attrib_focus = 1;\n",
" mode = 'focus';\n",
" }\n",
" img.attrib_down = 0;\n",
" break;\n",
" case 'blur':\n",
" img.attrib_focus = 0;\n",
" img.attrib_down = 0;\n",
" mode = 'normal';\n",
" break;\n",
" case 'down':\n",
" img.attrib_down = 1;\n",
" img.attrib_focus = 1;\n",
" mode = 'down';\n",
" break;\n",
" case 'out':\n",
" if ( img.attrib_focus == 0 ) {\n",
" mode = 'normal';\n",
" } else {\n",
" mode = 'focus';\n",
" }\n",
" img.attrib_down = 0;\n",
" break;\n",
" case 'over':\n",
" mode = 'over';\n",
" break;\n",
" case 'init':\n",
" img.attrib_down = 0;\n",
" img.attrib_focus = 0;\n",
" mode = 'normal';\n",
" break;\n",
" }\n",
" if ( mode != 'none' ) {\n",
" img.src = 'images/icon_button.php?label=download&' + 'mode=' + mode;\n",
" }\n",
" return false;\n",
"}\n",
"\n",
"function xoonips_download_button_click( file_id ) {\n",
" xoonips_download_button_change( 'init', file_id );\n",
" xoonips_download_confirmation( file_id );\n",
" return false;\n",
"}\n",
"\n",
"//]]>\n",
"</script>\n",
"\n",
"<br />\n",
"\n",
"\n",
"\n",
"<form name='print' action=\"detail.php\" method=\"post\" target=\"_blank\">\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
"<input type=\"hidden\" name=\"item_id\" value=\"6894\" />\n",
"<input type=\"hidden\" name=\"op\" value=\"print\" />\n",
"</form>\n",
"\n",
"<form id='xoonips_certify_form' action=\"detail.php\" method=\"post\">\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
"<input type=\"hidden\" name=\"index_id\" />\n",
"<input type=\"hidden\" name=\"item_id\" />\n",
"<input type=\"hidden\" name=\"op\" value=\"\" />\n",
"</form>\n",
"\n",
"<form action=\"detail.php\" name=\"detail_form\" method=\"post\">\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
"<input class=\"formButton\" type=\"button\" value=\"Print friendly\" onclick=\"document.print.submit();\" />\n",
"</form>\n",
"\n",
"\n",
"<br />\n",
"\n",
"<div align=\"right\">Views:17110</div> \n",
"<form id=\"xoonips_edit_form\" action=\"#\">\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
"<table class=\"outer\">\n",
" <!-- Basic Information -->\n",
" <tr>\n",
" <td class=\"head\">ID</td>\n",
" <td class=\"odd\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td width=\"30%\" class=\"head\">Language</td>\n",
" <td class=\"even\">English</td>\n",
" </tr>\n",
" <tr>\n",
" <td width=\"30%\" class=\"head\">Title</td>\n",
" <td class=\"odd\">2D Gabor Wavelet Transform and Inverse Transform (Reconstruction) Demo using Matlab</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Free Keywords</td>\n",
" <td class=\"even\">Matlab, Gabor function, Wavelet, simple cells</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Description</td>\n",
" <td class=\"odd\">## New: Compiled version for Mac OS X (that works without Matlab) is now available on this site from:<br /><a href=\"http://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6951\" target=\"_blank\">http://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6951</a> (345MB)<br /><br />## There is now a Japanese README file in the package.<br /><br />This Matlab script/application performs a 2D Gabor Wavelet Transform on an arbitrary image,<br />displays the resulting transform, and then performs the inverse transform<br />*slowly* and *sequentially* in animation, so that one can see how the original<br />image is synthesized back by summing many Gabor wavelets.</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Last Modified Date</td>\n",
" <td class=\"even\">Nov 7, 2012 17:14:15</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Created Date</td>\n",
" <td class=\"odd\">Oct 19, 2012 19:19:09</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Contributor</td>\n",
" <td class=\"even\"><a href=\"https://visiome.neuroinf.jp/modules/xoonips/showusers.php?uid=183\" target=\"_self\">Izumi OHZAWA (ohzawa)</a></td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Item Type</td>\n",
" <td class=\"odd\">Model</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Change Log(History)</td>\n",
" <td class=\"even\"><table>\n",
"<tr><td nowrap=\"nowrap\">Nov 7, 2012&nbsp;</td><td>Modified; Description.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Nov 7, 2012&nbsp;</td><td>Modified; Readme, Model file.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 31, 2012&nbsp;</td><td>Modified; Description, Readme, Model file.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 30, 2012&nbsp;</td><td>Modified; Description, Related to.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 30, 2012&nbsp;</td><td>Modified; Description.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 30, 2012&nbsp;</td><td>Modified; Description, Readme, Model file.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 26, 2012&nbsp;</td><td>Modified; インデックス.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 20, 2012&nbsp;</td><td>Modified; Preview, Model file.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 20, 2012&nbsp;</td><td>Modified; Related to.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 20, 2012&nbsp;</td><td>Modified; Description, Preview, Readme, Model file.</td></tr>\n",
"<tr><td nowrap=\"nowrap\">Oct 19, 2012&nbsp;</td><td>Modified; Description, Readme, Model file.</td></tr>\n",
"</table>\n",
"</td>\n",
" </tr>\n",
" \n",
" <!-- Model Item Detail Information -->\n",
" <tr>\n",
" <td class=\"head\">Model type</td>\n",
" <td class=\"odd\">Matlab</td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Creator</td>\n",
" <td class=\"even\">\n",
" <table>\n",
" <tr>\n",
" <td class='odd'>\n",
" Daisuke Kato\n",
" <input type='hidden' name='xnpmodel_creator[0][model_creator_id]' value='113'/>\n",
" <input type='hidden' name='xnpmodel_creator[0][creator]' value='Daisuke Kato'/>\n",
" <input type='hidden' name='xnpmodel_creator[0][creator_order]' value='0'/>\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td class='even'>\n",
" Izumi Ohzawa\n",
" <input type='hidden' name='xnpmodel_creator[1][model_creator_id]' value='114'/>\n",
" <input type='hidden' name='xnpmodel_creator[1][creator]' value='Izumi Ohzawa'/>\n",
" <input type='hidden' name='xnpmodel_creator[1][creator_order]' value='1'/>\n",
" </td>\n",
" </tr>\n",
" </table>\n",
"\n",
"\n",
"\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Preview</td>\n",
" <td class=\"odd\"><table>\n",
"<tr>\n",
"<td style=\"text-align: center; vertical-align: middle;\"><a href=\"https://visiome.neuroinf.jp/modules/xoonips/image.php?file_id=1605\" target=\"_blank\"><img src=\"https://visiome.neuroinf.jp/modules/xoonips/image.php?file_id=1605&amp;thumbnail=1\" alt=\"App window showing Gabor wavelet reconstruction with most significant 2000 wavelets\"/></a></td>\n",
"<td style=\"text-align: center; vertical-align: middle;\"><a href=\"https://visiome.neuroinf.jp/modules/xoonips/image.php?file_id=1608\" target=\"_blank\"><img src=\"https://visiome.neuroinf.jp/modules/xoonips/image.php?file_id=1608&amp;thumbnail=1\" alt=\"Gabor Wavelet Transform (coefficients) for Lena\"/></a></td>\n",
"<td style=\"text-align: center; vertical-align: middle;\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"text-align: center; vertical-align: middle;\">App window showing Gabor wavelet reconstruction with most significant 2000 wavelets</td>\n",
"<td style=\"text-align: center; vertical-align: middle;\">Gabor Wavelet Transform (coefficients) for Lena</td>\n",
"<td style=\"text-align: center; vertical-align: middle;\"></td>\n",
"</tr>\n",
"</table>\n",
"</td>\n",
" </tr>\n",
"\n",
"\n",
"\n",
" <tr>\n",
" <td class=\"head\">Model file</td>\n",
" <td class=\"even\"><noscript><span style=\"color: red;\">To download this file, enable JavaScript in your browser.</span><br /></noscript>GaborWavelet.zip<br />\n",
" <table>\n",
" <tr>\n",
" <td>Type</td>\n",
" <td>: application/x-zip</td>\n",
" <td rowspan=\"4\" style=\"vertical-align: middle;\">\n",
" <a href=\"download.php?file_id=1713\" onfocus=\"xoonips_download_button_change('focus','1713')\" onblur=\"xoonips_download_button_change('blur','1713')\" onmousedown=\"xoonips_download_button_change('down','1713')\" onmouseup=\"xoonips_download_button_change('over','1713')\" onmouseover=\"xoonips_download_button_change('over','1713')\" onmouseout=\"xoonips_download_button_change('out','1713')\" onkeypress=\"xoonips_download_button_change('down','1713')\" onclick=\"return xoonips_download_button_click('1713');\"><img src=\"images/icon_button.php?label=download&amp;mode=normal\" alt=\"Download\" id=\"xoonips_download_button_1713\"/></a>\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td>Size</td>\n",
" <td>: 18.5 MB</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Last updated</td>\n",
" <td>: Nov 7, 2012</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Downloads</td>\n",
" <td>: 952</td>\n",
" </tr>\n",
" </table>\n",
" <br />\n",
" Total downloads since Oct 19, 2012 : 1141<br />\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Readme</td>\n",
" <td class=\"odd\"><textarea readonly=\"readonly\" rows=\"5\" cols=\"40\" style=\"width:320px;\">00_README.txt [v.1.06]\n",
"\n",
"2D Gabor Wavelet Transform and Inverse Transform (Reconstruction) Demo using Matlab\n",
"Matlab script:\n",
"http://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6894\n",
"Mac OS X stand alone application:\n",
"http://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6951\n",
"\n",
"Authors: Daisuke Kato and Izumi Ohzawa\n",
"Graduate School of Frontier Biosciences, Osaka University\n",
"kato@fbs.osaka-u.ac.jp, ohzawa@fbs.osaka-u.ac.jp\n",
"Copyright 2012 some rights reserved: Daisuke Kato and Izumi Ohzawa \n",
"License: http://creativecommons.org/licenses/by/3.0/\n",
"\n",
"Modification Dates: \n",
"v1.00: 2012-10-19 Daisuke Kato\n",
"v1.01: 2012-10-19 Izumi Ohzawa: (cosmetic changes and typo corrections)\n",
"v1.02: 2012-10-20 Izumi Ohzawa: (cosmetic changes and typo corrections)\n",
"v1.03: 2012-10-23 Daisuke Kato: (inverted checkmark logic, pyramid drawing order)\n",
"v1.04: 2012-10-30 Izumi Ohzawa: Matlab Compiler OS X (64bit) native executable\n",
"\t\t\t\tthat can run without Matlab environment.\n",
"\t\t\t\tHacked app wrapper by doing setenv in &quot;prelaunch&quot; to make it run.\n",
"v1.05: 2012-10-31 Izumi Ohzawa: Additional test images from the Kansai area\n",
"v1.06: 2012-11-06 Daisuke Kato: Button can now start and stop (toggle)\n",
"\n",
"------------------------------------------\n",
"\n",
"--------\n",
"Purpose:\n",
"--------\n",
"\n",
"This Matlab script/application performs a 2D Gabor Wavelet Transform on an arbitrary image,\n",
"displays the resulting transform, and then performs the inverse transform\n",
"*slowly* and *sequentially* in animation, so that one can see how the original\n",
"image is reconstructed by summing many Gabor wavelets.\n",
"\n",
"This app has been developed for demonstrating intuitively how a\n",
"population of V1 simple cells represent arbitrary images, essentially\n",
"via a 2-D Gabor wavelet transform.\n",
"Simple cells have often been described casually as &quot;detecting edges and lines&quot;\n",
"in images, but that is not a modern view of what these cells do.\n",
"However, simply talking about Gabor functions and wavelet transforms\n",
"may not work well for many beginning students and general audience.\n",
"We hope that this application solves that problem by visually intuitive demonstrations.\n",
"We appreciate any feedback and suggestions for improvements. \n",
"\n",
"---------------------------------------------------------------------\n",
"How to Install and Use GaborWavelet.app (For Mac OSX without Matlab):\n",
"---------------------------------------------------------------------\n",
"[1m] Install Matlab Compiler Runtime (MCR), unless you have already done it before.\n",
" Run MCRInstaller/InstallForMacOSX.app\n",
" That is, go to folder &quot;MCRInstaller&quot;, and double-click on &quot;InstallForMacOSX.app&quot;\n",
" *Use the suggested install directory etc. Do not specify other custom locations.\n",
"\n",
"[2m] Copy (by drag-and-drop) the &quot;GaborWavelet.app&quot; into the /Applications folder on your Mac.\n",
" *Do so while holding down the &quot;Option&quot; key, if you wish to leave the original in the\n",
" original folder.\n",
" \n",
"[3m] Double click on GaborWavelet.app icon.\n",
"\n",
"[4m] Go to [2] below, wash and repeat.\n",
"\n",
"\n",
"------------------------------------------------------\n",
"How to Use the Matlab Script (For those with Matlab):\n",
"------------------------------------------------------\n",
"[1] Run &quot;GaborWaveletRepresentation.m&quot;\n",
"\n",
"[2] Select one of the images in the directory &quot;test image&quot;\n",
"Analysis is performed using 7 scales and 8 orientations.\n",
"\n",
"[3] Press &quot;show pyramid&quot; button to see the wavelet pyramid for the image.\n",
"A separate window will open.\n",
"The resulting Gabor wavelet coefficients for 6 scales are displayed \n",
"(the smallest scale is not shown for performance reasons), one square area for each scale.\n",
"The saturation (degree of red coloring) of each pair of triangular elements indicates\n",
"the amplitude of each wavelet (phase is not shown).\n",
"The orientation of a pair of wedge-shaped elements depicts the orientation of the wavelet.\n",
"\n",
"With the &quot;normalize each scale&quot; check box ON, the amplitude of the pyramid display\n",
"is normalized for each scale.\n",
"With &quot;normalize each scale&quot; OFF, the amplitudes are normalized to a single max across all scales. This check box state affects only the wavelet pyramid display. It has no effect on the reconstruction.\n",
"\n",
"[4] Press &quot;add N wavelets&quot; button (after optionally changing the N value).\n",
"The wavelets are added to the &quot;Sum of Gabors&quot; area, one by one, to\n",
"sequentially reconstruct the original image in the order of coefficient value\n",
"(more significant ones first).\n",
"## Please note that, as of v1.06, the buttun can now stop the animated addition.\n",
"\n",
"Using the &quot;fast-slow&quot; slider below the &quot;Original Image&quot;, you may slow down the\n",
"reconstruction process to examine individual wavelets and changes in the sum image\n",
"contributed by each wavelet, especially during the initial part of the process.\n",
"\n",
"The middle view, &quot;Wavelet Added&quot;, shows the most recent wavelet added (at full contrast).\n",
"The actual wavelet added is much fainter in contrast (to the extent that they\n",
"are invisible after the initial part of the process).\n",
"\n",
"While the automatic addition of wavelets is in progress, the polar plot\n",
"&quot;Scale &amp; Orientation&quot; indicates the spatial frequency and orientation of the\n",
"most recent wavelet added. The position is obvious in the &quot;Wavelet Added&quot; panel.\n",
"\n",
"After some wavelets have been added, clicking within the &quot;Scale &amp; Orientation&quot;\n",
"plot allows you to see the locations where that particular spatial frequency\n",
"component has been added.\n",
"\n",
"[5] Use the &quot;reset&quot; button to reset the reconstruction for the current image, or\n",
"Use &quot;load&quot; button to load a different image (by going back to step [2]).\n",
"\n",
"[6] You may load an arbitrary image (of reasonable size) in formats that Matlab supports.\n",
"\n",
"---------------------------------------------------------------------\n",
"Additional (optional) demo of oriented spatial frequency filtering\n",
"\n",
"[0a] Follow [1] and [2] as above.\n",
"\n",
"[1a] Click a point within the polar &quot;Scale &amp; Orientation&quot; to select a\n",
"wavelet of a particular orientation and spatial frequency.\n",
"\n",
"[2a] Click the &quot;select all&quot; button below the &quot;Position Select&quot; panel.\n",
"\n",
"[3a] The image shown in &quot;Sum of Gabors&quot; represents the result of \n",
"oriented spatial frequency filtering.\n",
"(Essentially what you might see if your V1 is made up of just one type of\n",
"simple cells with the orientation and spatial frquency tuning you specified in [1a].)\n",
"(E.g., see image: appimages/OrientedSF-Filtering.png)\n",
"\n",
"[4a] Press the &quot;reset&quot; button to try a different wavelet. Go to [1a].\n",
"\n",
"Enjoy!\n",
"\n",
"-----------------------------------------------------------------------\n",
"Some technical details (may be modified in code, if you know what you are doing):\n",
"Scales are in 1-octave steps, 7 scales. (It is actually not exactly the case. Will fix..)\n",
"Spatial frequency tuning bandwidth (full width@half height): 1.5 octaves\n",
"8 orientations.\n",
"Wavelet coefficients are normalized by L2-Norm, by the energy of wavelets.\n",
"Gabor functions are tiled with 1.5 sigma separations between centers of neighboring Gabors.\n",
"\n",
"---------------------------------------------\n",
"Sample Image Copyrights and Acknowledgements:\n",
"---------------------------------------------\n",
"\n",
"original image/statue1.png:\n",
"test image/Statue.tiff:\n",
"\n",
"Reprinted by permission from Macmillan Publishers Ltd: Nature\n",
"Isamu Motoyoshi , Shin&#039;ya Nishida , Lavanya Sharan and Edward H.\n",
"Adelson, Image statistics and the perception of surface qualities,\n",
"Nature, 447(7141): 206-209, copyright 2007\n",
"--\n",
"\n",
"Bark, Boat, Bridge, Brodatrz, elaine, lena_std, mandrill, Peppers\n",
"are from The USC-SIPI Image Database:\n",
"http://sipi.usc.edu/database/database.php\n",
"\n",
"Bark.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=textures&amp;img=1.1.02\n",
"Bridge.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=misc&amp;img=5.2.10\n",
"lena_std.tiff\n",
"http://www.cs.cmu.edu/~chuck/lennapg/lena_std.tif\n",
"mandrill.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=misc&amp;img=4.2.03\n",
"Boat.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=misc&amp;img=boat.512\n",
"Brodatz.tiff -&gt; cloth.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=textures&amp;img=1.3.05\n",
"Peppers.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=misc&amp;img=4.2.07\n",
"elaine.tiff\n",
"http://sipi.usc.edu/database/download.php?vol=misc&amp;img=elaine.512\n",
"\n",
"All other images listed below were taken or generated by Ohzawa Lab members:\n",
"sin.tiff\n",
"ChezP.png\n",
"Kinkakuji.png\n",
"KiyomizuDera.png\n",
"TaiyounoTou.png\n",
"Thai.png\n",
"\n",
"------------------------------------------\n",
"\n",
"-----------\n",
"References:\n",
"-----------\n",
"\n",
"[1] Tai Sing Lee, Image representation using 2D Gabor wavelets.\n",
"IEEE Trans. on Pattern Analysis and Machine Intelligence, 18(10): 959-971, 1996.\n",
"\n",
"[2] Kendrick N. Kay, Thomas Naselaris, Ryan J. Prenger, Jack L. Gallant,\n",
"Identifying natural images from human brain activity. Nature, 452(7185): 352-355, 2008.\n",
"(esp. supplementary material)\n",
"\n",
"[3] Visiome Platform: Visiome Platform is a web-based database system with a variety of digital research resources in Vision Science. http://visiome.neuroinf.jp\n",
"\n",
"---\n",
"end</textarea></td>\n",
" </tr>\n",
" <tr>\n",
" <td class=\"head\">Rights</td>\n",
" <td class=\"even\"><!-- Creative Commons License -->\n",
"<table>\n",
" <tr>\n",
" <td><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\"><img alt=\"Creative Commons License\" border=\"0\" src=\"http://creativecommons.org/images/public/somerights20.png\" /></a><br /></td>\n",
" <td>This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\">Creative Commons Attribution 2.5 License</a></td>\n",
" </tr>\n",
"</table>\n",
"<!-- /Creative Commons License -->\n",
"<!--\n",
"<rdf:RDF xmlns=\"http://creativecommons.org/ns#\"\n",
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n",
" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
"<Work rdf:about=\"\">\n",
"<license rdf:resource=\"http://creativecommons.org/licenses/by/2.5/\" />\n",
"</Work>\n",
"<License rdf:about=\"http://creativecommons.org/licenses/by/2.5/\">\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Attribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Reproduction\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Distribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#DerivativeWorks\" />\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Notice\" />\n",
"</License>\n",
"</rdf:RDF>\n",
"--></td>\n",
" </tr>\n",
" <!-- index -->\n",
" <tr>\n",
" <td class=\"head\">Index</td>\n",
" <td class=\"odd\"><table>\n",
"<tr class=\"odd\"><td style=\"vertical-align: middle;\"><a href=\"listitem.php?index_id=326\">/ Public / Visiome 2004 / Visual System / Visual Pathway / V1/Area 17/Striate Cortex / Cell Type / Simple Cell</a><br /><a href=\"listitem.php?index_id=5902\">/ Public / Model</a><br /><a href=\"listitem.php?index_id=5973\">/ Public / Demonstration</a><br /></td><td style=\"vertical-align: middle; text-align: left;\"></td></tr>\n",
"</table>\n",
"</td>\n",
" </tr>\n",
" <!-- related_to -->\n",
" <tr>\n",
" <td class=\"head\">Related to</td>\n",
" <td class=\"even\"><!-- begin of xoonips_detail_related_to.html -->\n",
"<table width=\"100%\" border=\"0\" cellspacing=\"5\">\n",
" <tr style='vertical-align:middle; text-align:center;'>\n",
" <th>Item summary</th>\n",
" </tr>\n",
" <tr valign=\"top\">\n",
" <td class=\"odd\">\n",
" <table>\n",
" <tr>\n",
" <td width=\"65\" style=\"vertical-align:middle; text-align:center;\">\n",
" <img src=\"https://visiome.neuroinf.jp/modules/xnpmodel/images/icon_model.gif\" alt=\"icon_model\"/>\n",
" </td>\n",
" <td style=\"vertical-align:middle;\">\n",
" <a href=\"https://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6106\">Two-dimensional spatial frequency filtering by FFT using Matlab&nbsp;</a><br />\n",
" Kota S. Sasaki\n",
" . Izumi Ohzawa\n",
" </td>\n",
"\n",
" <td width=\"65\" style=\"vertical-align:middle; text-align:center;\">\n",
"<a target=\"_blank\" href=\"https://sim.neuroinf.jp/modules/xoonips/detail.php?item_id=56\"><img src=\"https://sim.neuroinf.jp/images/button.png\" title=\"Online Simulation\" alt=\"[BUTTON]\" height=\"35\" /></a> </td>\n",
"\n",
" </tr>\n",
"</table>\n",
" </td>\n",
" </tr>\n",
" <tr valign=\"top\">\n",
" <td class=\"even\">\n",
" <table>\n",
" <tr>\n",
" <td width=\"65\" style=\"vertical-align:middle; text-align:center;\">\n",
" <img src=\"https://visiome.neuroinf.jp/modules/xnptool/images/icon_tool.gif\" alt=\"icon_tool\"/>\n",
" </td>\n",
" <td>\n",
" <a href=\"https://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6448\">Two-Dimensional Fourier Image Reconstruction (Inverse FT) Demo using Matlab&nbsp;</a><br />\n",
" Matlab<br />\n",
" </td>\n",
" <td width=\"65\">\n",
" </td>\n",
" </tr>\n",
"</table>\n",
" </td>\n",
" </tr>\n",
" <tr valign=\"top\">\n",
" <td class=\"odd\">\n",
" <table>\n",
" <tr>\n",
" <td width=\"65\" style=\"vertical-align:middle; text-align:center;\">\n",
" <img src=\"https://visiome.neuroinf.jp/modules/xnpmodel/images/icon_model.gif\" alt=\"icon_model\"/>\n",
" </td>\n",
" <td style=\"vertical-align:middle;\">\n",
" <a href=\"https://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6951\">Mac OSX: 2D Gabor Wavelet Transform and Inverse Transform (Reconstruction) Demo&nbsp;</a><br />\n",
" Daisuke Kato\n",
" . Izumi Ohzawa\n",
" </td>\n",
"\n",
" <td width=\"65\" style=\"vertical-align:middle; text-align:center;\">\n",
" </td>\n",
"\n",
" </tr>\n",
"</table>\n",
" </td>\n",
" </tr>\n",
"</table>\n",
"<!-- end of xoonips_detail_related_to.html --></td>\n",
" </tr>\n",
"</table>\n",
"</form>\n",
"\n",
"<br /><br />\n",
"\n",
"\n",
"\n",
" <input type=\"hidden\" name=\"item_id\" value=\"6894\" />\n",
"\n",
"<script type=\"text/javascript\">\n",
"<!--\n",
"function xoonips_download_confirmation(file_id){\n",
"\txoonips_hideSelectBoxes();\n",
"\t\n",
"\t// move confirmation html to end of <body>\n",
"\tvar overlay = document.getElementById('xoonips_overlay');\n",
"\tvar lightbox = document.getElementById('xoonips_lightbox');\n",
"\tvar body = document.getElementsByTagName('body').item(0);\n",
"\tbody.insertBefore( overlay, null );\n",
"\tbody.insertBefore( lightbox, null );\n",
"\t\n",
"\t// overlay\n",
"\tvar arrayPageSize = xoonips_getPageSize();\n",
"\toverlay.style.height = arrayPageSize[1] + \"px\";\n",
"\toverlay.style.display = 'block';\n",
"\t\n",
"\t// calculate top offset for the lightbox and display \n",
"\tvar arrayPageSize = xoonips_getPageSize();\n",
"\tvar arrayPageScroll = xoonips_getPageScroll();\n",
"\tvar lightboxTop = arrayPageScroll[1] + (arrayPageSize[3] / 15);\n",
"\tlightbox.style.top = lightboxTop + \"px\";\n",
"\tlightbox.style.display = 'block';\n",
"\t\n",
"\t// initialize controls\n",
"\tvar form = document.getElementById('xoonips_download_form_' + file_id);\n",
"\tvar button = form.download;\n",
"\tvar radio_notify = form.radio_notify;\n",
"\tvar radio_license = form.radio_license;\n",
"\tif ( radio_notify ) radio_notify [1].checked = 'checked';\n",
"\tif ( radio_license ) radio_license[1].checked = 'checked';\n",
"\tbutton.disabled = true;\n",
"\t\n",
"\tvar file_ids = [\n",
"\t1605,\t1608,\t1713\t];\n",
"\tfor ( i = 0; i < file_ids.length; i++ ){\n",
"\t\tvar page = document.getElementById('xoonips_download_page_' + file_ids[i]);\n",
"\t\tif ( page )\n",
"\t\t\tpage.style.display = ( file_ids[i] == file_id ) ? 'block' : 'none';\n",
"\t}\n",
"}\n",
"\n",
"function xoonips_change_download_enabled(obj){\n",
"\tvar form = obj.form;\n",
"\tvar button = form.download;\n",
"\tvar radio_notify = form.radio_notify ;\n",
"\tvar radio_license = form.radio_license;\n",
"\tif ( radio_notify && radio_notify [1].checked ) button.disabled = true;\n",
"\telse if ( radio_license && radio_license[1].checked ) button.disabled = true;\n",
"\telse button.disabled = false;\n",
"\treturn true;\n",
"}\n",
"\n",
"function xoonips_close_download_confirmation(){\n",
"\txoonips_showSelectBoxes();\n",
"\tvar overlay = document.getElementById('xoonips_overlay');\n",
"\toverlay.style.display = 'none';\n",
"\t\n",
"\tvar lightbox = document.getElementById('xoonips_lightbox');\n",
"\tlightbox.style.display = 'none';\n",
"\treturn true;\n",
"}\n",
"\n",
"//\n",
"// getPageScroll()\n",
"// Returns array with x,y page scroll values.\n",
"// Core code from - quirksmode.org\n",
"//\n",
"function xoonips_getPageScroll(){\n",
"\n",
"\tvar yScroll;\n",
"\n",
"\tif (self.pageYOffset) {\n",
"\t\tyScroll = self.pageYOffset;\n",
"\t} else if (document.documentElement && document.documentElement.scrollTop){\t // Explorer 6 Strict\n",
"\t\tyScroll = document.documentElement.scrollTop;\n",
"\t} else if (document.body) {// all other Explorers\n",
"\t\tyScroll = document.body.scrollTop;\n",
"\t}\n",
"\n",
"\tarrayPageScroll = new Array('',yScroll) \n",
"\treturn arrayPageScroll;\n",
"}\n",
"\n",
"//\n",
"// getPageSize()\n",
"// Returns array with page width, height and window width, height\n",
"// Core code from - quirksmode.org\n",
"// Edit for Firefox by pHaez\n",
"//\n",
"function xoonips_getPageSize(){\n",
"\t\n",
"\tvar xScroll, yScroll;\n",
"\t\n",
"\tif (window.innerHeight && window.scrollMaxY) {\t\n",
"\t\txScroll = document.body.scrollWidth;\n",
"\t\tyScroll = window.innerHeight + window.scrollMaxY;\n",
"\t} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac\n",
"\t\txScroll = document.body.scrollWidth;\n",
"\t\tyScroll = document.body.scrollHeight;\n",
"\t} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari\n",
"\t\txScroll = document.body.offsetWidth;\n",
"\t\tyScroll = document.body.offsetHeight;\n",
"\t}\n",
"\t\n",
"\tvar windowWidth, windowHeight;\n",
"\tif (self.innerHeight) {\t// all except Explorer\n",
"\t\twindowWidth = self.innerWidth;\n",
"\t\twindowHeight = self.innerHeight;\n",
"\t} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode\n",
"\t\twindowWidth = document.documentElement.clientWidth;\n",
"\t\twindowHeight = document.documentElement.clientHeight;\n",
"\t} else if (document.body) { // other Explorers\n",
"\t\twindowWidth = document.body.clientWidth;\n",
"\t\twindowHeight = document.body.clientHeight;\n",
"\t}\t\n",
"\t\n",
"\t// for small pages with total height less then height of the viewport\n",
"\tif(yScroll < windowHeight){\n",
"\t\tpageHeight = windowHeight;\n",
"\t} else { \n",
"\t\tpageHeight = yScroll;\n",
"\t}\n",
"\n",
"\t// for small pages with total width less then width of the viewport\n",
"\tif(xScroll < windowWidth){\t\n",
"\t\tpageWidth = windowWidth;\n",
"\t} else {\n",
"\t\tpageWidth = xScroll;\n",
"\t}\n",
"\n",
"\t\n",
"\tarrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) \n",
"\treturn arrayPageSize;\n",
"}\n",
"\n",
"function xoonips_showSelectBoxes(){\n",
"\tselects = document.getElementsByTagName(\"select\");\n",
"\tfor (i = 0; i != selects.length; i++) {\n",
"\t\tselects[i].style.visibility = \"visible\";\n",
"\t}\n",
"}\n",
"\n",
"function xoonips_hideSelectBoxes(){\n",
"\tselects = document.getElementsByTagName(\"select\");\n",
"\tfor (i = 0; i != selects.length; i++) {\n",
"\t\tselects[i].style.visibility = \"hidden\";\n",
"\t}\n",
"}\n",
"//-->\n",
"</script>\n",
"<div style=\"opacity: 0.8; display: none;\" id=\"xoonips_overlay\">\n",
"</div>\n",
"<div style=\"display: none;\" id=\"xoonips_lightbox\">\n",
" <div style=\"width: 570px;\" id=\"xoonips_outerImageContainer\" >\n",
" <div id=\"xoonips_imageContainer\">\n",
" <div id=\"xoonips_download_page_1605\" style=\"display: none;\" >\n",
" <form action='https://visiome.neuroinf.jp/modules/xoonips/download.php' method='post' onsubmit='xoonips_close_download_confirmation()' id='xoonips_download_form_1605'>\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
" <input type='hidden' name='file_id' value='1605' />\n",
" <input type='hidden' name='xoonips_download_with_token' value='1' />\n",
" <input type=\"hidden\" name=\"XOOPS_G_TICKET\" value=\"28a9b678a035c7e938dd290705663478\" />\n",
" <div style='text-align: left'>\n",
" download file information\n",
" <div class='xoonips_download_box'>\n",
" Lena_with_2000_wavelets.png<br />\n",
" <table style='width: auto'>\n",
" <tr>\n",
" <td>Type</td>\n",
" <td>: image/png</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Size</td>\n",
" <td>: 107.6 KB</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Last updated</td>\n",
" <td>: Oct 20, 2012</td>\n",
" </tr>\n",
" </table>\n",
" </div>\n",
" <br />\n",
" license agreement\n",
" <div class='xoonips_download_box'>\n",
" Please read the following license agreement carefully.\n",
" <!-- Creative Commons License -->\n",
"<table>\n",
" <tr>\n",
" <td><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\"><img alt=\"Creative Commons License\" border=\"0\" src=\"http://creativecommons.org/images/public/somerights20.png\" /></a><br /></td>\n",
" <td>This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\">Creative Commons Attribution 2.5 License</a></td>\n",
" </tr>\n",
"</table>\n",
"<!-- /Creative Commons License -->\n",
"<!--\n",
"<rdf:RDF xmlns=\"http://creativecommons.org/ns#\"\n",
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n",
" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
"<Work rdf:about=\"\">\n",
"<license rdf:resource=\"http://creativecommons.org/licenses/by/2.5/\" />\n",
"</Work>\n",
"<License rdf:about=\"http://creativecommons.org/licenses/by/2.5/\">\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Attribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Reproduction\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Distribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#DerivativeWorks\" />\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Notice\" />\n",
"</License>\n",
"</rdf:RDF>\n",
"-->\n",
" <input type='radio' name='radio_license' value='1' onclick='xoonips_change_download_enabled(this);' />I accept the terms in the license agreement.<br />\n",
" <input type='radio' name='radio_license' value='0' onclick='xoonips_change_download_enabled(this);' checked='checked' />I do not accept the terms in the license agreement.<br />\n",
" </div>\n",
" <br />\n",
" </div>\n",
" Acceptance is needed to download this file.\n",
" <br />\n",
" <input class=\"formButton\" type='submit' name='download' value='Download' disabled='disabled' />\n",
" <input class=\"formButton\" type='button' value='Cancel' onclick='xoonips_close_download_confirmation()' />\n",
" </form>\n",
" </div>\n",
" <div id=\"xoonips_download_page_1608\" style=\"display: none;\" >\n",
" <form action='https://visiome.neuroinf.jp/modules/xoonips/download.php' method='post' onsubmit='xoonips_close_download_confirmation()' id='xoonips_download_form_1608'>\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
" <input type='hidden' name='file_id' value='1608' />\n",
" <input type='hidden' name='xoonips_download_with_token' value='1' />\n",
" <input type=\"hidden\" name=\"XOOPS_G_TICKET\" value=\"b52d213f5dc6bbac3113cf4dc40af544\" />\n",
" <div style='text-align: left'>\n",
" download file information\n",
" <div class='xoonips_download_box'>\n",
" Lena_Pyramid_EachScaleNormalized.png<br />\n",
" <table style='width: auto'>\n",
" <tr>\n",
" <td>Type</td>\n",
" <td>: image/png</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Size</td>\n",
" <td>: 196.8 KB</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Last updated</td>\n",
" <td>: Oct 20, 2012</td>\n",
" </tr>\n",
" </table>\n",
" </div>\n",
" <br />\n",
" license agreement\n",
" <div class='xoonips_download_box'>\n",
" Please read the following license agreement carefully.\n",
" <!-- Creative Commons License -->\n",
"<table>\n",
" <tr>\n",
" <td><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\"><img alt=\"Creative Commons License\" border=\"0\" src=\"http://creativecommons.org/images/public/somerights20.png\" /></a><br /></td>\n",
" <td>This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\">Creative Commons Attribution 2.5 License</a></td>\n",
" </tr>\n",
"</table>\n",
"<!-- /Creative Commons License -->\n",
"<!--\n",
"<rdf:RDF xmlns=\"http://creativecommons.org/ns#\"\n",
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n",
" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
"<Work rdf:about=\"\">\n",
"<license rdf:resource=\"http://creativecommons.org/licenses/by/2.5/\" />\n",
"</Work>\n",
"<License rdf:about=\"http://creativecommons.org/licenses/by/2.5/\">\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Attribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Reproduction\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Distribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#DerivativeWorks\" />\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Notice\" />\n",
"</License>\n",
"</rdf:RDF>\n",
"-->\n",
" <input type='radio' name='radio_license' value='1' onclick='xoonips_change_download_enabled(this);' />I accept the terms in the license agreement.<br />\n",
" <input type='radio' name='radio_license' value='0' onclick='xoonips_change_download_enabled(this);' checked='checked' />I do not accept the terms in the license agreement.<br />\n",
" </div>\n",
" <br />\n",
" </div>\n",
" Acceptance is needed to download this file.\n",
" <br />\n",
" <input class=\"formButton\" type='submit' name='download' value='Download' disabled='disabled' />\n",
" <input class=\"formButton\" type='button' value='Cancel' onclick='xoonips_close_download_confirmation()' />\n",
" </form>\n",
" </div>\n",
" <div id=\"xoonips_download_page_1713\" style=\"display: none;\" >\n",
" <form action='https://visiome.neuroinf.jp/modules/xoonips/download.php' method='post' onsubmit='xoonips_close_download_confirmation()' id='xoonips_download_form_1713'>\n",
"\n",
"<input name=\"HypEncHint\" type=\"hidden\" value=\"ぷ\" />\n",
"\n",
" <input type='hidden' name='file_id' value='1713' />\n",
" <input type='hidden' name='xoonips_download_with_token' value='1' />\n",
" <input type=\"hidden\" name=\"XOOPS_G_TICKET\" value=\"5f607ebcdc3e231fce43600413b081fb\" />\n",
" <div style='text-align: left'>\n",
" download file information\n",
" <div class='xoonips_download_box'>\n",
" GaborWavelet.zip<br />\n",
" <table style='width: auto'>\n",
" <tr>\n",
" <td>Type</td>\n",
" <td>: application/x-zip</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Size</td>\n",
" <td>: 18.5 MB</td>\n",
" </tr>\n",
" <tr>\n",
" <td>Last updated</td>\n",
" <td>: Nov 7, 2012</td>\n",
" </tr>\n",
" </table>\n",
" </div>\n",
" <br />\n",
" license agreement\n",
" <div class='xoonips_download_box'>\n",
" Please read the following license agreement carefully.\n",
" <!-- Creative Commons License -->\n",
"<table>\n",
" <tr>\n",
" <td><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\"><img alt=\"Creative Commons License\" border=\"0\" src=\"http://creativecommons.org/images/public/somerights20.png\" /></a><br /></td>\n",
" <td>This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\">Creative Commons Attribution 2.5 License</a></td>\n",
" </tr>\n",
"</table>\n",
"<!-- /Creative Commons License -->\n",
"<!--\n",
"<rdf:RDF xmlns=\"http://creativecommons.org/ns#\"\n",
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n",
" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
"<Work rdf:about=\"\">\n",
"<license rdf:resource=\"http://creativecommons.org/licenses/by/2.5/\" />\n",
"</Work>\n",
"<License rdf:about=\"http://creativecommons.org/licenses/by/2.5/\">\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Attribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Reproduction\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#Distribution\" />\n",
" <permits rdf:resource=\"http://creativecommons.org/ns#DerivativeWorks\" />\n",
" <requires rdf:resource=\"http://creativecommons.org/ns#Notice\" />\n",
"</License>\n",
"</rdf:RDF>\n",
"-->\n",
" <input type='radio' name='radio_license' value='1' onclick='xoonips_change_download_enabled(this);' />I accept the terms in the license agreement.<br />\n",
" <input type='radio' name='radio_license' value='0' onclick='xoonips_change_download_enabled(this);' checked='checked' />I do not accept the terms in the license agreement.<br />\n",
" </div>\n",
" <br />\n",
" </div>\n",
" Acceptance is needed to download this file.\n",
" <br />\n",
" <input class=\"formButton\" type='submit' name='download' value='Download' disabled='disabled' />\n",
" <input class=\"formButton\" type='button' value='Cancel' onclick='xoonips_close_download_confirmation()' />\n",
" </form>\n",
" </div>\n",
" </div>\n",
" </div>\n",
"</div>\n",
"\n",
"\n",
" <br /></div> <br />\n",
"\t\t</td>\n",
"\t\t<td rowspan=\"2\" style=\"width:15px;\">\n",
"\t\t\t<img src=\"https://visiome.neuroinf.jp/themes/visiome/images/spacer.gif\" alt=\".\" width=\"15\" height=\"1\" />\n",
"\t\t</td>\n",
"\t\t\t<td rowspan=\"2\" style=\"width:15px; \">\n",
"\t\t\t<img src=\"https://visiome.neuroinf.jp/themes/visiome/images/spacer.gif\" alt=\".\" width=\"15\" height=\"1\" />\n",
"\t\t</td>\n",
"\t</tr>\n",
"\t<tr>\n",
"\t\t<td class=\"left_space\">&nbsp;\n",
"\t\t\t\n",
"\t\t</td>\n",
"\t\t<td>\n",
"\t\t\t<div align=\"center\">\n",
"\t\t\t\t<table summary=\"footer_credit\">\n",
"\t\t\t\t\t<tr>\n",
"\t\t\t\t\t\t<td colspan=\"2\">\n",
"\t\t\t\t\t\t\t<hr />\n",
"\t\t\t\t\t\t</td>\n",
"\t\t\t\t\t</tr>\n",
"\t\t\t\t\t<tr>\n",
"\t\t\t\t\t <td align=\"left\" class=\"footer\">\n",
"\t\t\t\t\t \tCopyright (cc) 2005-2011 RIKEN BSI Neuroinformatics Japan Center. Some rights reserved.\n",
"\t\t\t\t\t</td>\n",
"\t\t\t\t\t<td align=\"right\">\n",
"\t\t\t\t\t</td>\n",
"\t\t\t\t</tr>\n",
"\t\t\t </table>\n",
"\t\t\t</div>\n",
"\t\t</td>\n",
"\t\t\t</tr>\n",
"</table>\n",
"<!-- Content area end -->\n",
"\n",
"</body>\n",
"</html>\n"
]
}
],
"source": [
"import requests\n",
"'''\n",
"visiomeログインクローラ初版\n",
"'''\n",
"params = {'uname':'akazawa','pass':'akazawa','op':'login','xoops_redirect':'/'}\n",
"r = requests.post(\n",
" 'https://visiome.neuroinf.jp/modules/xoonips/user.php',\n",
" timeout=3.0,\n",
" data=params)\n",
"# print(r.text) リダイレクトフォーム\n",
"print(\"Cookie is set to:\")\n",
"print(r.cookies.get_dict())\n",
"print(\"---------\")\n",
"print(\"Going to main page\")\n",
"r = requests.get('https://visiome.neuroinf.jp/', cookies=r.cookies)\n",
"#print(r.text)\n",
"r = requests.get('https://visiome.neuroinf.jp/modules/xoonips/detail.php?item_id=6894',cookies=r.cookies)\n",
"print(r.text)"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"r.url\n",
"r.history"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment