<blockquote>
<p>Then, if it was an image, you could call maximalInput.reshape() to set the size of the input correctly, &gt;then you could do bilinear interpolation and/or write it to a file and postprocess from there.</p>
</blockquote>

<p>Looks nice for me:). But I have a question</p>

<pre><code>sa.MaximalInput(0 /* for hidden unit 0 */, maximalInput);
</code></pre>

<p>why not just pass in the maximalInput?</p>

<pre><code>sa.MaximalInput(maximalInput);
maximalInput.save(fileName, arma::pgm_binary);
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/452#issuecomment-150379147">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFHyJlv7_nigRSC_mbtupcaL-XkuTks5o-WHqgaJpZM4GA0ZB.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/452#issuecomment-150379147"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>