# CSJ2K.j2k.roi.encoder.RectROIMaskGenerator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_roi_encoder_RectROIMaskGenerator" data-uid="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator" class="text-break">RectROIMaskGenerator Class
</h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="CSJ2K.j2k.roi.encoder.ROIMaskGenerator.html">ROIMaskGenerator</a></div>
    <div class="level2"><span class="xref">RectROIMaskGenerator</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.roi.encoder.html">CSJ2K.j2k.roi.encoder</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RectROIMaskGenerator : ROIMaskGenerator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RectROIMaskGenerator
    Inherits ROIMaskGenerator</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_roi_encoder_RectROIMaskGenerator__ctor_CSJ2K_j2k_roi_encoder_ROI___System_Int32_" data-uid="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.#ctor(CSJ2K.j2k.roi.encoder.ROI[],System.Int32)">
          <a class="xref" href="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.-ctor.html#CSJ2K_j2k_roi_encoder_RectROIMaskGenerator__ctor_CSJ2K_j2k_roi_encoder_ROI___System_Int32_">RectROIMaskGenerator(ROI[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>The constructor of the mask generator. The constructor is called with
the ROI data. This data is stored in arrays that are used to generate
the SubbandRectROIMask trees for each component.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_ToString" data-uid="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.ToString">
          <a class="xref" href="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.ToString.html#CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>This function returns the relevant data of the mask generator</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_getROIMask_CSJ2K_j2k_image_DataBlkInt_CSJ2K_j2k_wavelet_Subband_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.getROIMask(CSJ2K.j2k.image.DataBlkInt,CSJ2K.j2k.wavelet.Subband,System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.getROIMask.html#CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_getROIMask_CSJ2K_j2k_image_DataBlkInt_CSJ2K_j2k_wavelet_Subband_System_Int32_System_Int32_">getROIMask(DataBlkInt, Subband, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>This functions gets a DataBlk with the size of the current code-block
and fills it with the ROI mask. The lowest scaling value in the mask
for this code-block is returned by the function to be used for
modifying the rate distortion estimations.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_makeMask_CSJ2K_j2k_wavelet_Subband_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.makeMask(CSJ2K.j2k.wavelet.Subband,System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.roi.encoder.RectROIMaskGenerator.makeMask.html#CSJ2K_j2k_roi_encoder_RectROIMaskGenerator_makeMask_CSJ2K_j2k_wavelet_Subband_System_Int32_System_Int32_">makeMask(Subband, int, int)</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>

</div>
