--- /dev/null
+#!/usr/bin/env ruby
+
+require 'cgi'
+
+cgi = CGI.new
+
+### Header
+HTMLstr = ""
+HTMLstr += "<!DOCTYPE html>"
+HTMLstr += "<html>"
+HTMLstr += "<head>"
+HTMLstr += "<title>mrcImageLowPassFilter</title>"
+HTMLstr += "</head>"
+
+HTMLstr += "<body>"
+
+### Close or Back
+HTMLstr += '<a href="?pione-action=finish">Close</a>'
+HTMLstr += "<br>"
+HTMLstr += '<a href="mrcImageLowPassFilter.html">Back</a>'
+HTMLstr += "<br>"
+HTMLstr += "<br>"
+
+
+# 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
+strOutputFile = cgi['OutputFile']
+strHalfValuePoint = cgi['HalfValuePoint']
+strWecth = cgi['Width']
+strMode = cgi['Mode']
+
+### mrcImageLowPassFilter
+command = "mrcImageLowPassFilter"
+command += ' -i "' + strInputFile + '"'
+command += ' -o "' + strOutputFile + '"'
+command += ' -hvp "' + strHalfValuePoint + '"'
+command += ' -w "' + strWecth + '"'
+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
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>mrcImageLowPassFilter</title>
+ </head>
+ <body>
+ <form action="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="outdata.lpf"/>
+ </td>
+ <td>
+ 出力ファイル名(-o)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="HalfValuePoint" value="1.0"/>
+ </td>
+ <td>
+ HalfValuePoint[A-1] (強度を半分に落とす空間周波数を示す)(-hvp)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="Width" value="1.0"/>
+ </td>
+ <td>
+ 空間周波数のcos関数の幅を設定(-w)
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <select name="Mode">
+ <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>
\ No newline at end of file