<?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: Time gain compensation for Plane-wave</title>
		<link>http://www.k-wave.org/forum/topic/time-gain-compensation-for-plane-wave</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:42:12 +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/time-gain-compensation-for-plane-wave" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Time gain compensation for Plane-wave"</title>
			<link>http://www.k-wave.org/forum/topic/time-gain-compensation-for-plane-wave#post-7181</link>
			<pubDate>Mon, 20 Jan 2020 17:43:44 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7181@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Farnaz,&#60;/p&#62;
&#60;p&#62;It looks like there's a bug in this script - the attenuation value should be in Nepers not dB. Try dividing tgc_alpha by 8.686.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Farnaz on "Time gain compensation for Plane-wave"</title>
			<link>http://www.k-wave.org/forum/topic/time-gain-compensation-for-plane-wave#post-7118</link>
			<pubDate>Wed, 06 Nov 2019 13:35:19 +0000</pubDate>
			<dc:creator>Farnaz</dc:creator>
			<guid isPermaLink="false">7118@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I am using : &#60;/p&#62;
&#60;p&#62;   t0 = 120 * kgrid.dt / 2;&#60;br /&#62;
   r =  c0*( (1:length(kgrid.t_array)) * kgrid.dt / 2 - t0);    % [m]&#60;/p&#62;
&#60;p&#62;   % create time gain compensation function based on attenuation value,&#60;br /&#62;
   % transmit frequency, and round trip distance&#60;br /&#62;
   tgc_alpha = 0.48;       % [dB/(MHz cm)]&#60;br /&#62;
   tgc = exp(2 * tgc_alpha * 5e6 / 1e6 * r *100);&#60;/p&#62;
&#60;p&#62;   % apply the time gain compensation to each of the scan lines&#60;br /&#62;
   scan_lines2 = bsxfun(@times, tgc, transducer_data);&#60;/p&#62;
&#60;p&#62;for time gain compensation of single Plane-wave.&#60;/p&#62;
&#60;p&#62;120 is the length of my input signal, and the center frequency is 5e6 Hz, attenuation was 0.5 dB/MHz cm while simulating the raw data. I have a single plane wave and I do time compensation before cutting the near transducer signal (transmit pulse). &#60;/p&#62;
&#60;p&#62;The result of this looks strange, it seems that the signal from end of the medium is extremely amplified. As the result the b-mode image is also looks quite disturbed. The effect is so high that I can not even afterwards normalize the data so I end up with quite large values. &#60;/p&#62;
&#60;p&#62;The question is that whether this formula can be applied for plane-waves as well? Am I setting any parameter wrong here? &#60;/p&#62;
&#60;p&#62;Best,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
