<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Making an Animation</title>
		<link>http://www.k-wave.org/forum/topic/making-an-animation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:07:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/making-an-animation" rel="self" type="application/rss+xml" />

		<item>
			<title>ahd123 on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6820</link>
			<pubDate>Wed, 03 Apr 2019 19:34:43 +0000</pubDate>
			<dc:creator>ahd123</dc:creator>
			<guid isPermaLink="false">6820@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Just a heads up, the patch() command does not appear to be fully implemented in Octave, specifically transparency. As a result, running voxelPlot() does not work unless line 114&#60;br /&#62;
&#60;code&#62;set(hp2, 'FaceAlpha', transparency);&#60;/code&#62; is commented out. Also, the edge color does not seem to work. Output is not optimal, but is usable.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ahd123 on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6810</link>
			<pubDate>Thu, 28 Mar 2019 21:00:02 +0000</pubDate>
			<dc:creator>ahd123</dc:creator>
			<guid isPermaLink="false">6810@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Just started using k-wave with Octave. Unfortunately, Octave does not have the videoWriter functionality. It does have a video package which provides 'addframe', 'avifile','aviinfo',and 'aviread' functions. &#60;/p&#62;
&#60;p&#62;Does anyone know if these functions can be wrapped into a pseudofunction to provide videoWriter-like functionality that k-wave could use without having to rewrite the underlying K-wave movie functionality?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alexander on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6030</link>
			<pubDate>Fri, 30 Jun 2017 02:41:22 +0000</pubDate>
			<dc:creator>Alexander</dc:creator>
			<guid isPermaLink="false">6030@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thank you Brad. Everything seems to be working great now. I look forward to using v1.2 soon.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6026</link>
			<pubDate>Thu, 29 Jun 2017 15:57:07 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6026@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi eu7209,&#60;/p&#62;
&#60;p&#62;Yes, you can just set your sensor mask to cover the whole domain. See the &#34;Defining A Sensor Mask By Opposing Corners Example&#34;. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alexander on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6025</link>
			<pubDate>Thu, 29 Jun 2017 15:47:44 +0000</pubDate>
			<dc:creator>Alexander</dc:creator>
			<guid isPermaLink="false">6025@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks Brad,&#60;/p&#62;
&#60;p&#62;I'll re-post here once I test it out in octave. However, is there a way to capture the pressure field as it is? So for FOCUS I could get the pressure field as an array with properties (x,y,z,t) and just loop through t to plot the pressure field (as seen in the above code). Because from my understanding sensor_data is only used for image reconstruction, whereas I just what the pressure field as the simulation runs.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6021</link>
			<pubDate>Thu, 29 Jun 2017 15:01:45 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6021@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi eu7209,&#60;/p&#62;
&#60;p&#62;We have actually switched to using &#60;code&#62;VideoWriter&#60;/code&#62; for V1.2. The release should be out very soon. Unfortunately, I'm not sure about compatibility with Octave. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alexander on "Making an Animation"</title>
			<link>http://www.k-wave.org/forum/topic/making-an-animation#post-6014</link>
			<pubDate>Mon, 26 Jun 2017 00:30:12 +0000</pubDate>
			<dc:creator>Alexander</dc:creator>
			<guid isPermaLink="false">6014@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am currently using GNU/Octave with k-wave and wanted to make an animation of some of the simulations I am running. The default way to do this in k-wave isn't supported in octave (or newer versions of matlab) by passing ‘RecordMovie’ as true in kspaceFirstOrder2D(...). Therefore I am looking to capture the pressure field at each point in time and then plot it as a mesh plot. &#60;/p&#62;
&#60;p&#62;I was able to do something similar using FOCUS (&#60;a href=&#34;http://www.egr.msu.edu/~fultras-web/index.php&#34; rel=&#34;nofollow&#34;&#62;http://www.egr.msu.edu/~fultras-web/index.php&#60;/a&#62;) with the following code (using matlab)...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;nt = size(p_tsd, 4); % The amount of time points in the array 

for it = 1:nt
mesh(z*100, x*100, squeeze(p_tsd(:, :, :, it)))
title([&#38;#39;FNM TSD Example, t = &#38;#39;, sprintf(&#38;#39;%0.3f&#38;#39;,(it/fs) * 1e6), &#38;#39;\mu&#38;#39;,&#38;#39;s&#38;#39;])
zlabel(&#38;#39;pressure (Pa)&#38;#39;)
xlabel(&#38;#39;z (cm)&#38;#39;)
ylabel(&#38;#39;x (cm)&#38;#39;)
temp=axis();
temp(5)=-maxpressure;
temp(6)=maxpressure;
axis(temp);
cb = colorbar();
caxis([-maxpressure maxpressure]);
ylabel(cb, &#38;#39;Pressure (Pa)&#38;#39;);
drawnow

frame = getframe(1);
 im = frame2im(frame);
 [imind,cm] = rgb2ind(im,256);

 if it == 1
     imwrite(imind,cm,&#38;#39;x-z_transient_bone.gif&#38;#39;,&#38;#39;gif&#38;#39;, &#38;#39;Loopcount&#38;#39;,inf);
 else
     imwrite(imind,cm,&#38;#39;x-z_transient_bone.gif&#38;#39;,&#38;#39;gif&#38;#39;,&#38;#39;WriteMode&#38;#39;,&#38;#39;append&#38;#39;,&#38;#39;DelayTime&#38;#39;, 0);
 end
end&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So would something similar be possible in k-wave?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
