new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/Annotation.pione
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/Interaction.pione
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/LowPassFilter(Kinoshita)+v0.1.1.ppg
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/Main.pione
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/bin/EosCommandSelect.cgi
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/bin/Result-mrcImageLowPassFilter.cgi
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/bin/Set-mrcImageLowPassFilter.cgi
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/etc/index.html
new file: SmallTools/mrcImage/mrcImageLowPassFilter/PIONE-WebClient/pione-package.json
--- /dev/null
+.@ PackageName :: "LowPassFilter"
+.@ Editor :: "Kinoshita"
+.@ Tag :: "v0.1.1"
--- /dev/null
+Rule Interaction
+ output '*.*'.all
+Action
+ # build public directory for pione-interactive
+ mkdir public
+ cp etc/* public
+ cp bin/* public
+
+ # start interactive operation
+ pione-interactive browser --public public
+
+ cp public/* .
+End
--- /dev/null
+Rule Main
+ output '*.*'.all
+Flow
+ rule Interaction
+End
--- /dev/null
+#!/usr/bin/env ruby
+
+require 'cgi'
+
+cgi = CGI.new
+HTMLstr=""
+
+
+# Main Process
+
+## Query to Parameters
+EosCommand=cgi['EosCommand']
+
+## Jump Page of Set-[EosCommand].cgi
+iJumpCount=0
+
+HTMLstr += '<meta http-equiv="refresh" content="'
+HTMLstr += iJumpCount.to_s
+HTMLstr += ';URL=Set-'
+HTMLstr += EosCommand
+HTMLstr += '.cgi">'
+
+
+# Output as html
+cgi.out(type: "text/html") do
+ HTMLstr
+end
--- /dev/null
+#!/usr/bin/env ruby
+
+require 'cgi'
+
+cgi = CGI.new
+HTMLstr = ""
+
+## Query to Parameters
+
+### Copy InputFile
+fpQueryInputFile = cgi.params['InputFile'][0]
+strInputFile = fpQueryInputFile.original_filename
+fpInputFile = open(strInputFile, "wb")
+fpInputFile.write(fpQueryInputFile.read)
+fpInputFile.close
+
+### Other Query
+strOutputFile = cgi['OutputFile']
+strHalfValuePoint = cgi['HalfValuePoint']
+strWidth = cgi['Width']
+strMode = cgi['Mode']
+
+## Header
+HTMLstr += "<!DOCTYPE html>"
+HTMLstr += "<html>"
+HTMLstr += "<head>"
+HTMLstr += '<meta charset="utf-8">'
+HTMLstr += "<title>mrcImageLowPassFilter</title>"
+HTMLstr += "</head>"
+
+HTMLstr += "<body>"
+
+### Close or Back
+HTMLstr += '<a href="?pione-action=finish">Close</a>'
+HTMLstr += "<br>"
+HTMLstr += '<form action="Set-mrcImageLowPassFilter.cgi" method="post" enctype="multipart/form-data">'
+HTMLstr += '<button type="submit">Back</button>'
+HTMLstr += '<input type="hidden" name="OutputFile" value="' + strOutputFile + '">'
+HTMLstr += '<input type="hidden" name="HalfValuePoint" value="' + strHalfValuePoint + '">'
+HTMLstr += '<input type="hidden" name="Width" value="' + strWidth + '">'
+HTMLstr += '<input type="hidden" name="Mode" value="' + strMode + '">'
+HTMLstr += '</form>'
+HTMLstr += "<br>"
+HTMLstr += "<br>"
+
+
+# Main Process
+
+## mrcImageLowPassFilter
+command = "mrcImageLowPassFilter"
+command += ' -i "' + strInputFile + '"'
+command += ' -o "' + strOutputFile + '"'
+command += ' -hvp "' + strHalfValuePoint + '"'
+command += ' -w "' + strWidth + '"'
+command += ' -m "' + strMode + '"'
+system(command)
+
+### mrc2gif
+#### For input
+strGifInputFile = strInputFile + ".gif"
+command = "mrc2gif"
+command += ' -i "' + strInputFile + '"'
+command += ' -o "' + strGifInputFile + '"'
+system(command)
+
+#### For output
+strGifOutputFile = strOutputFile + ".gif"
+command = "mrc2gif"
+command += ' -i "' + strOutputFile + '"'
+command += ' -o "' + strGifOutputFile + '"'
+system(command)
+
+### mrcImageInfo
+#### For input
+strInfoInputFile = strInputFile + ".info"
+command = "mrcImageInfo"
+command += ' -I'
+command += ' -i "' + strInputFile + '"'
+command += ' -o "' + strInfoInputFile + '"'
+system(command)
+
+#### For output
+strInfoOutputFile = strOutputFile + ".info"
+command = "mrcImageInfo"
+command += ' -I'
+command += ' -i "' + strOutputFile + '"'
+command += ' -o "' + strInfoOutputFile + '"'
+system(command)
+
+
+## View as HTML Statement
+
+### Table
+HTMLstr += "<table>"
+
+#### Title
+HTMLstr += "<tr>"
+HTMLstr += "<td>" + strInputFile + "</td>"
+HTMLstr += "<td>" + strOutputFile + "</td>"
+HTMLstr += "</tr>"
+
+#### GifImage
+##### For Input
+HTMLstr += "<tr>"
+HTMLstr += "<td>"
+HTMLstr += '<img src="' + strGifInputFile + '">'
+HTMLstr += "</td>"
+##### For Output
+HTMLstr += "<td>"
+HTMLstr += '<img src="' + strGifOutputFile + '">'
+HTMLstr += "</td>"
+HTMLstr += "</tr>"
+
+#### mrcImageInfo
+##### For Input
+HTMLstr += "<tr>"
+HTMLstr += "<td>"
+fpInfoInputFile = open(strInfoInputFile, "r")
+fpInfoInputFile.each do |line|
+ HTMLstr += line + "<br>"
+end
+fpInfoInputFile.close
+HTMLstr += "</td>"
+##### For Output
+HTMLstr += "<td>"
+fpInfoOutputFile = open(strInfoOutputFile, "r")
+fpInfoOutputFile.each do |line|
+ HTMLstr += line + "<br>"
+end
+fpInfoOutputFile.close
+HTMLstr += "</td>"
+HTMLstr += "</tr>"
+
+HTMLstr += "</table>"
+
+
+HTMLstr += "</body>"
+HTMLstr += "</html>"
+
+# Output as html
+cgi.out(type: "text/html") do
+ HTMLstr
+end
--- /dev/null
+#!/usr/bin/env ruby
+
+require 'cgi'
+
+cgi = CGI.new
+HTMLstr = ""
+
+
+# Main Process
+
+## Query to Parameters
+
+### Copy InputFile
+#fpQueryInputFile = cgi.params['InputFile'][0]
+#strInputFile = fpQueryInputFile.original_filename
+#fpInputFile = open(strInputFile, "wb")
+#fpInputFile.write(fpQueryInputFile.read)
+#fpInputFile.close
+
+### Other Query
+### OutputFile(-o)
+strOutputFile = cgi['OutputFile']
+if strOutputFile == "" then
+ strOutputFile = "outdata.lpf"
+end
+
+### HalfValuePoint(-hvp)
+strHalfValuePoint = cgi['HalfValuePoint']
+if strHalfValuePoint == "" then
+ strHalfValuePoint = "1.0"
+end
+
+### Width(-w)
+strWidth = cgi['Width']
+if strWidth == "" then
+ strWidth = "1.0"
+end
+
+### Mode(-m)
+strMode = cgi['Mode']
+if strMode == "" then
+ strMode = "1"
+end
+
+## HTML Statement Begin
+HTMLstr += <<'Block-HTML'
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>mrcImageLowPassFilter</title>
+ </head>
+ <body>
+ <form action="Result-mrcImageLowPassFilter.cgi" method="post" enctype="multipart/form-data">
+ <button type="submit">開始</button>
+ <br>
+ <table>
+ <tr>
+ <td>
+ <input type="file" name="InputFile"/>
+ </td>
+ <td>
+ 入力ファイル名(-i)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="OutputFile" value="
+Block-HTML
+## HTML Statement End
+
+HTMLstr += strOutputFile
+
+## HTML Statement Begin
+HTMLstr += <<'Block-HTML'
+"/>
+ </td>
+ <td>
+ 出力ファイル名(-o)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="HalfValuePoint" value="
+Block-HTML
+## HTML Statement End
+
+HTMLstr += strHalfValuePoint
+
+## HTML Statement Begin
+HTMLstr += <<'Block-HTML'
+"/>
+ </td>
+ <td>
+ HalfValuePoint[A-1] (強度を半分に落とす空間周波数を示す)(-hvp)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="Width" value="
+Block-HTML
+## HTML Statement End
+
+HTMLstr += strWidth
+
+## HTML Statement Begin
+HTMLstr += <<'Block-HTML'
+"/>
+ </td>
+ <td>
+ 空間周波数のcos関数の幅を設定(-w)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <select name="Mode" value="
+Block-HTML
+## HTML Statement End
+
+HTMLstr += strMode
+
+## HTML Statement Begin
+HTMLstr += <<'Block-HTML'
+"/>
+ <option value="1">1: ステップフィルタ</option>
+ <option value="2">2: cosフィルタ</option>
+ <option value="3">3: expフィルタ</option>
+ <option value="4">4: ガウシアンフィルタ</option>
+ <option value="5">5: ローレンツ型フィルタ</option>
+ </select>
+ </td>
+ <td>
+ モード(-m)
+ </td>
+ </tr>
+ </table>
+ </form>
+ <br>
+ <br>
+ <a href="?pione-action=finish">終了</a>
+ </body>
+</html>
+Block-HTML
+## HTML Statement End
+
+
+# Output as html
+cgi.out(type: "text/html") do
+ HTMLstr
+end
--- /dev/null
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>InteractiveCommand Index Page</title>
+ </head>
+ <body>
+ <form action="EosCommandSelect.cgi" method="post" enctype="multipart/form-data">
+ コマンド選択
+ <select name="EosCommand">
+ <option value="mrcImageLowPassFilter">mrcImageLowPassFilter</option>
+ </select>
+ <button type="submit">実行画面へ</button>
+ </form>
+ <br>
+ <br>
+ <a href="?pione-action=finish">終了</a>
+ </body>
+</html>
\ No newline at end of file
--- /dev/null
+{
+ "PackageName": "LowPassFilter",
+ "Editor": "Kinoshita",
+ "Tag": "v0.1.1",
+ "Parents": [
+
+ ],
+ "Documents": [
+ "Annotation.pione",
+ "Interaction.pione",
+ "Main.pione"
+ ],
+ "Scenarios": [
+
+ ],
+ "Bins": [
+ "bin/.DS_Store",
+ "bin/EosCommandSelect.cgi",
+ "bin/Result-mrcImageLowPassFilter.cgi",
+ "bin/Set-mrcImageLowPassFilter.cgi"
+ ],
+ "Etcs": [
+ "etc/.DS_Store",
+ "etc/index.html"
+ ]
+}
\ No newline at end of file