<?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: Error when using own dcm file</title>
		<link>http://www.k-wave.org/forum/topic/error-when-using-own-dcm-file</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:10:39 +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/error-when-using-own-dcm-file" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Error when using own dcm file"</title>
			<link>http://www.k-wave.org/forum/topic/error-when-using-own-dcm-file#post-7903</link>
			<pubDate>Sun, 01 Nov 2020 22:38:35 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7903@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi milksoup,&#60;/p&#62;
&#60;p&#62;Likely your dicom image data has been loaded as &#60;code&#62;int16&#60;/code&#62; (or similar). Try casting it to single or double precision after loading:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;source.p0 = single(source.p0);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>milksoup on "Error when using own dcm file"</title>
			<link>http://www.k-wave.org/forum/topic/error-when-using-own-dcm-file#post-7877</link>
			<pubDate>Thu, 08 Oct 2020 17:25:05 +0000</pubDate>
			<dc:creator>milksoup</dc:creator>
			<guid isPermaLink="false">7877@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm using the load external image example to try and load my own CT slice. &#60;/p&#62;
&#60;p&#62;I changed loadImage to dicomread and Nx;Ny = 512 instead of 128 to match my image.&#60;/p&#62;
&#60;p&#62;I got this error and I don't know how to fix it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Error using  .*
Integers can only be combined with integers of the same class, or scalar doubles.

Error in smooth (line 134)
    mat_sm = ( max(abs(mat(:))) ./ max(abs(mat_sm(:))) ) .* mat_sm;

Error in kspaceFirstOrder_inputChecking (line 1540)
        source.p0 = smooth(source.p0, true);

Error in kspaceFirstOrder2D (line 537)
kspaceFirstOrder_inputChecking;

Error in example_ivp_loading_external_image (line 61)
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thank you in advance
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
