# CSJ2K.j2k.roi.encoder.ROIMaskGenerator.makeMask

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_roi_encoder_ROIMaskGenerator_makeMask_" data-uid="CSJ2K.j2k.roi.encoder.ROIMaskGenerator.makeMask*">makeMask Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_roi_encoder_ROIMaskGenerator_makeMask_" data-uid="CSJ2K.j2k.roi.encoder.ROIMaskGenerator.makeMask*"></a>
<h4 id="CSJ2K_j2k_roi_encoder_ROIMaskGenerator_makeMask_CSJ2K_j2k_wavelet_Subband_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.roi.encoder.ROIMaskGenerator.makeMask(CSJ2K.j2k.wavelet.Subband,System.Int32,System.Int32)">makeMask(Subband, int, int)</h4>
<div class="markdown level1 summary"><p>This function generates the ROI mask for the entire tile. The mask is
generated for one component. This method is called once for each tile
and component.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public abstract void makeMask(Subband sb, int magbits, int n)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public MustOverride Sub makeMask(sb As Subband, magbits As Integer, n As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.wavelet.Subband.html">Subband</a></td>
      <td><span class="parametername">sb</span></td>
      <td><p>The root of the subband tree used in the decomposition</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">magbits</span></td>
      <td><p>The max number of magnitude bits in any code-block</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">n</span></td>
      <td><p>component number</p>
</td>
    </tr>
  </tbody>
</table>
</div>
