# CSJ2K.Icc.Lut.MatrixBasedTransformTosRGB.apply

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_Icc_Lut_MatrixBasedTransformTosRGB_apply_" data-uid="CSJ2K.Icc.Lut.MatrixBasedTransformTosRGB.apply*">apply Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_Icc_Lut_MatrixBasedTransformTosRGB_apply_" data-uid="CSJ2K.Icc.Lut.MatrixBasedTransformTosRGB.apply*"></a>
<h4 id="CSJ2K_Icc_Lut_MatrixBasedTransformTosRGB_apply_CSJ2K_j2k_image_DataBlkInt___CSJ2K_j2k_image_DataBlkInt___" data-uid="CSJ2K.Icc.Lut.MatrixBasedTransformTosRGB.apply(CSJ2K.j2k.image.DataBlkInt[],CSJ2K.j2k.image.DataBlkInt[])">apply(DataBlkInt[], DataBlkInt[])</h4>
<div class="markdown level1 summary"><p>Performs the transform.  Pass the input throught the LookUpTableFP, apply the
matrix to the output and finally pass the intermediate buffer through the
LookUpTable8.  This operation is designated (LFP<em>M</em>L8) * Data are already
constructed.  Although the data for only one component is returned, the
transformation must be done for all components, because the matrix application
involves a linear combination of component input to produce the output.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void apply(DataBlkInt[] inb, DataBlkInt[] outb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub apply(inb As DataBlkInt(), outb As DataBlkInt())</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.image.DataBlkInt.html">DataBlkInt</a>[]</td>
      <td><span class="parametername">inb</span></td>
      <td><p>input data block</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.image.DataBlkInt.html">DataBlkInt</a>[]</td>
      <td><span class="parametername">outb</span></td>
      <td><p>output data block</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.Icc.Lut.MatrixBasedTransformException.html">MatrixBasedTransformException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_Icc_Lut_MatrixBasedTransformTosRGB_apply_" data-uid="CSJ2K.Icc.Lut.MatrixBasedTransformTosRGB.apply*"></a>
<h4 id="CSJ2K_Icc_Lut_MatrixBasedTransformTosRGB_apply_CSJ2K_j2k_image_DataBlkFloat___CSJ2K_j2k_image_DataBlkFloat___" data-uid="CSJ2K.Icc.Lut.MatrixBasedTransformTosRGB.apply(CSJ2K.j2k.image.DataBlkFloat[],CSJ2K.j2k.image.DataBlkFloat[])">apply(DataBlkFloat[], DataBlkFloat[])</h4>
<div class="markdown level1 summary"><p>Performs the transform.  Pass the input throught the LookUpTableFP, apply the
matrix to the output and finally pass the intermediate buffer through the
LookUpTable8.  This operation is designated (LFP<em>M</em>L8) * Data are already
constructed.  Although the data for only one component is returned, the
transformation must be done for all components, because the matrix application
involves a linear combination of component input to produce the output.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void apply(DataBlkFloat[] inb, DataBlkFloat[] outb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub apply(inb As DataBlkFloat(), outb As DataBlkFloat())</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.image.DataBlkFloat.html">DataBlkFloat</a>[]</td>
      <td><span class="parametername">inb</span></td>
      <td><p>input data block</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.image.DataBlkFloat.html">DataBlkFloat</a>[]</td>
      <td><span class="parametername">outb</span></td>
      <td><p>output data block</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.Icc.Lut.MatrixBasedTransformException.html">MatrixBasedTransformException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
