Commit ffe3f16a authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update fsqc.sh

Convert tif files to png files
parent 822f028b
...@@ -5,10 +5,10 @@ echo "<table>" >> index.html ...@@ -5,10 +5,10 @@ echo "<table>" >> index.html
for sub in $(ls ${SUBJECTS_DIR}); for sub in $(ls ${SUBJECTS_DIR});
do do
echo "<tr>" >> index.html echo "<tr>" >> index.html
echo "<td><a href=\"file:"$sub".lh.lat.hr.tif\"><img src=\""$sub".lh.lat.lr.tif\"></a></td>" >> index.html echo "<td><a href=\"file:"$sub".lh.lat.hr.png\"><img src=\""$sub".lh.lat.lr.png\"></a></td>" >> index.html
echo "<td><a href=\"file:"$sub".lh.med.hr.tif\"><img src=\""$sub".lh.med.lr.tif\"></a></td>" >> index.html echo "<td><a href=\"file:"$sub".lh.med.hr.png\"><img src=\""$sub".lh.med.lr.png\"></a></td>" >> index.html
echo "<td><a href=\"file:"$sub".rh.lat.hr.tif\"><img src=\""$sub".rh.lat.lr.tif\"></a></td>" >> index.html echo "<td><a href=\"file:"$sub".rh.lat.hr.png\"><img src=\""$sub".rh.lat.lr.png\"></a></td>" >> index.html
echo "<td><a href=\"file:"$sub".rh.med.hr.tif\"><img src=\""$sub".rh.med.lr.tif\"></a></td>" >> index.html echo "<td><a href=\"file:"$sub".rh.med.hr.png\"><img src=\""$sub".rh.med.lr.png\"></a></td>" >> index.html
echo "</tr>" >> index.html echo "</tr>" >> index.html
echo "<tr>" >> index.html echo "<tr>" >> index.html
echo "<td colspan=4><center>"$sub"</center><br></td>" >> index.html echo "<td colspan=4><center>"$sub"</center><br></td>" >> index.html
...@@ -48,8 +48,15 @@ do ...@@ -48,8 +48,15 @@ do
echo "save_tiff "$sub".rh.med.lr.tif" >>tmp.tcl echo "save_tiff "$sub".rh.med.lr.tif" >>tmp.tcl
echo "exit 0" >>tmp.tcl echo "exit 0" >>tmp.tcl
tksurfer $sub rh pial -tcl tmp.tcl tksurfer $sub rh pial -tcl tmp.tcl
rm tmp.tcl rm tmp.tcl
done; done;
echo "</table>" >> index.html echo "</table>" >> index.html
echo "</html>" >> index.html echo "</html>" >> index.html
\ No newline at end of file
# Convert tif to PNG and remove TIFF files
for f in *.tif; do
echo "Converting $f";
convert "$f" "$(basename "$f" .tif).png";
rm $f
done
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment