# CSJ2K.j2k.roi.encoder.SubbandRectROIMask.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_roi_encoder_SubbandRectROIMask__ctor_" data-uid="CSJ2K.j2k.roi.encoder.SubbandRectROIMask.#ctor*">SubbandRectROIMask Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_roi_encoder_SubbandRectROIMask__ctor_" data-uid="CSJ2K.j2k.roi.encoder.SubbandRectROIMask.#ctor*"></a>
<h4 id="CSJ2K_j2k_roi_encoder_SubbandRectROIMask__ctor_CSJ2K_j2k_wavelet_Subband_System_Int32___System_Int32___System_Int32___System_Int32___System_Int32_" data-uid="CSJ2K.j2k.roi.encoder.SubbandRectROIMask.#ctor(CSJ2K.j2k.wavelet.Subband,System.Int32[],System.Int32[],System.Int32[],System.Int32[],System.Int32)">SubbandRectROIMask(Subband, int[], int[], int[], int[], int)</h4>
<div class="markdown level1 summary"><p>The constructor of the SubbandROIMask takes the dimensions of the
subband as parameters. A tree of masks is generated from the subband
sb. Each Subband contains the boundaries of each ROI.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SubbandRectROIMask(Subband sb, int[] ulxs, int[] ulys, int[] lrxs, int[] lrys, int nr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sb As Subband, ulxs As Integer(), ulys As Integer(), lrxs As Integer(), lrys As Integer(), nr 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 subband corresponding to this Subband Mask</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">ulxs</span></td>
      <td><p>The upper left x coordinates of the ROIs</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">ulys</span></td>
      <td><p>The upper left y coordinates of the ROIs</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">lrxs</span></td>
      <td><p>The lower right x coordinates of the ROIs</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">lrys</span></td>
      <td><p>The lower right y coordinates of the ROIs</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nr</span></td>
      <td><p>Number of ROIs that affect this tile</p>
</td>
    </tr>
  </tbody>
</table>
</div>
