<?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: Affine transformations unsupported for line elements [v1.4]</title>
		<link>http://www.k-wave.org/forum/topic/affine-transformations-unsupported-for-line-elements-v14</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Thu, 14 May 2026 23:25:43 +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/affine-transformations-unsupported-for-line-elements-v14" rel="self" type="application/rss+xml" />

		<item>
			<title>Santeri on "Affine transformations unsupported for line elements [v1.4]"</title>
			<link>http://www.k-wave.org/forum/topic/affine-transformations-unsupported-for-line-elements-v14#post-8702</link>
			<pubDate>Tue, 07 Feb 2023 19:00:34 +0000</pubDate>
			<dc:creator>Santeri</dc:creator>
			<guid isPermaLink="false">8702@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Affine transformations appear to not be implemented for line elements at the moment. This seems to be fixable by adding a few lines that apply the affine transformation to the start_point and end_point vectors within the getOffGridPoints function in kWaveArray.&#60;/p&#62;
&#60;p&#62;For example, in the 2D case we currently have:&#60;/p&#62;
&#60;p&#62;    px = linspace(obj.elements{element_num}.start_point(1) + d(1)/2, obj.elements{element_num}.end_point(1) - d(1)/2, m_integration);&#60;br /&#62;
    py = linspace(obj.elements{element_num}.start_point(2) + d(2)/2, obj.elements{element_num}.end_point(2) - d(2)/2, m_integration);&#60;/p&#62;
&#60;p&#62;Which does not apply the affine transformation. If we replace these lines with the following:&#60;/p&#62;
&#60;p&#62;    start_affine = obj.affine(obj.elements{element_num}.start_point);&#60;br /&#62;
    end_affine   = obj.affine(obj.elements{element_num}.end_point);&#60;br /&#62;
    px = linspace(start_affine(1) + d(1)/2, end_affine(1) - d(1)/2, m_integration);&#60;br /&#62;
    py = linspace(start_affine(2) + d(2)/2, end_affine(2) - d(2)/2, m_integration);&#60;/p&#62;
&#60;p&#62;Then the transformation appears to work.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
