<?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: Incorrect output data dimension for gaussianFilter to work</title>
		<link>https://www.k-wave.org/forum/topic/incorrect-output-data-dimension-for-gaussianfilter-to-work</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Sun, 13 Sep 2026 08:24:45 +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>https://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="https://www.k-wave.org/forum/rss/topic/incorrect-output-data-dimension-for-gaussianfilter-to-work" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Incorrect output data dimension for gaussianFilter to work"</title>
			<link>https://www.k-wave.org/forum/topic/incorrect-output-data-dimension-for-gaussianfilter-to-work#post-8261</link>
			<pubDate>Wed, 21 Jul 2021 16:51:06 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8261@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Yes the data will be a 4D array if using cuboid corners. You could instead use a binary sensor mask (so the data will be returned as a 2D array so the call &#60;code&#62;gaussianFilter&#60;/code&#62; inside &#60;code&#62;kspaceFirstOrder3DC&#60;/code&#62; should work), or apply the filter it after the simulation as you have done.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>luni.jimmy on "Incorrect output data dimension for gaussianFilter to work"</title>
			<link>https://www.k-wave.org/forum/topic/incorrect-output-data-dimension-for-gaussianfilter-to-work#post-8232</link>
			<pubDate>Thu, 08 Jul 2021 10:35:54 +0000</pubDate>
			<dc:creator>luni.jimmy</dc:creator>
			<guid isPermaLink="false">8232@https://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for all the contributions!&#60;/p&#62;
&#60;p&#62;I was running &#60;code&#62;kspaceFirstOrder3DG&#60;/code&#62; using a sensor mask defined by cuboid corners, and I defined the sensors' frequency response.&#60;/p&#62;
&#60;p&#62;Error message popped up when it ran into &#60;code&#62;gaussianFilter&#60;/code&#62;, saying that there are &#34;Too many input arguments&#34;.&#60;/p&#62;
&#60;p&#62;After some inspection, I found that in &#60;code&#62;kspaceFirstOrder3D&#60;/code&#62;, &#60;code&#62;gaussianFilter&#60;/code&#62; was applied to sensor data (where &#60;code&#62;sensor_data.p&#60;/code&#62; is a 2-D matrix) before re-ordering, so everything was fine.&#60;br /&#62;
However, in &#60;code&#62;kspaceFirstOrder3DG&#60;/code&#62;, the sensor data read back from h5 file is already in 4-D format, such that &#60;code&#62;gaussianFilter&#60;/code&#62; can not work properly.&#60;/p&#62;
&#60;p&#62;I think I can remove the sensors' frequency response for now and filter the signal after &#60;code&#62;kspaceFirstOrder3DG&#60;/code&#62; finishes. Or is there any other alternative modifications that I can do?&#60;/p&#62;
&#60;p&#62;Thanks again!&#60;/p&#62;
&#60;p&#62;P.S. I have modified the &#60;code&#62;h5writeatt&#60;/code&#62; part according to &#60;a href=&#34;http://www.k-wave.org/forum/topic/error-reading-h5-files-when-using-binaries&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/forum/topic/error-reading-h5-files-when-using-binaries&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
