# Local RLEImage compiling errors with ITK5.4

**URL:** <https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533>\
**Category:** Beginner Questions\
**Created:** [March 19, 2024, 10:44pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533 "2024-03-19T22:44:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jilei-hao](https://discourse.itk.org/user_avatar/discourse.itk.org/jilei-hao/32/2876_2.png) [@jilei-hao](https://discourse.itk.org/u/jilei-hao)\
**Post date:** [March 19, 2024, 10:44pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/1 "2024-03-19T22:44:20Z")

</div>

Hi @dzenanz,

I’m compiling ITK-SNAP with ITK 5.4-rc.2 and start getting following errors from [this line](https://github.com/pyushkevich/itksnap/blob/master/Logic/Mesh/MultiLabelMeshPipeline.cxx#L63).

Similar errors also occur when using ImageFileWriter and ImageAlgorithm etc. with `RLEImage`. The project is still using the local version of the RLEImage code instead of the itkRLEImage module. Are there any changes I can make to fix this or do you recommend we start using the remote RLE module instead. Any suggestions are appreciated!

```auto
In file included from /Users/jileihao/dev/itksnap-dev/itksnap/Logic/Mesh/MultiLabelMeshPipeline.cxx:50:
In file included from /Users/jileihao/tk/itk/installed/include/ITK-5.4/itkBinaryThresholdImageFilter.h:21:
In file included from /Users/jileihao/tk/itk/installed/include/ITK-5.4/itkUnaryFunctorImageFilter.h:145:
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkUnaryFunctorImageFilter.hxx:88:30: error: no viable constructor or deduction guide for deduction of template arguments of 'ImageScanlineConstIterator'
  ImageScanlineConstIterator inputIt(inputPtr, inputRegionForThread);
                             ^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkBinaryThresholdImageFilter.h:221:3: note: in instantiation of member function 'itk::UnaryFunctorImageFilter<RLEImage<unsigned short, 3>, itk::Image<float, 3>, itk::Functor::BinaryThreshold<unsigned short, float>>::DynamicThreadedGenerateData' requested here
  BinaryThresholdImageFilter();
  ^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkBinaryThresholdImageFilter.h:150:15: note: in instantiation of member function 'itk::BinaryThresholdImageFilter<RLEImage<unsigned short, 3>, itk::Image<float, 3>>::BinaryThresholdImageFilter' requested here
  itkNewMacro(Self);
              ^
/Users/jileihao/dev/itksnap-dev/itksnap/Logic/Mesh/MultiLabelMeshPipeline.cxx:63:40: note: in instantiation of member function 'itk::BinaryThresholdImageFilter<RLEImage<unsigned short, 3>, itk::Image<float, 3>>::New' requested here
  m_ThrehsoldFilter = ThresholdFilter::New();
                                       ^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkImageScanlineConstIterator.h:106:3: note: candidate template ignored: substitution failure [with TImage = RLEImage<unsigned short, 3>]: cannot reference member of primary template because deduced class template specialization 'ImageScanlineConstIterator<RLEImage<unsigned short, 3>>' is instantiated from a partial specialization
  ImageScanlineConstIterator(const TImage * ptr, const RegionType & region)
  ^ ~~~~~~~~~~
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkImageScanlineConstIterator.h:267:1: note: candidate template ignored: could not match 'SmartPointer<type-parameter-0-0>' against 'const RLEImage<unsigned short, 3> *'
ImageScanlineConstIterator(SmartPointer<TImage>, const typename TImage::RegionType &)
^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkImageScanlineConstIterator.h:119:3: note: candidate function template not viable: requires single argument 'it', but 2 arguments were provided
  ImageScanlineConstIterator(const ImageIterator<TImage> & it)
  ^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkImageScanlineConstIterator.h:135:3: note: candidate function template not viable: requires single argument 'it', but 2 arguments were provided
  ImageScanlineConstIterator(const ImageConstIterator<TImage> & it)
  ^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkImageScanlineConstIterator.h:64:27: note: candidate function template not viable: requires 1 argument, but 2 were provided
class ITK_TEMPLATE_EXPORT ImageScanlineConstIterator : public ImageConstIterator<TImage>
                          ^
/Users/jileihao/tk/itk/installed/include/ITK-5.4/itkImageScanlineConstIterator.h:97:3: note: candidate function template not viable: requires 0 arguments, but 2 were provided
  ImageScanlineConstIterator()
  ^
1 error generated.

```

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [March 20, 2024, 1:49am UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/2 "2024-03-20T01:49:29Z")

</div>

I suggest using the remote module. Otherwise you should backport changes done there to SNAP’s fork.

---

<div class="post-metadata">

**Author:** ![jilei-hao](https://discourse.itk.org/user_avatar/discourse.itk.org/jilei-hao/32/2876_2.png) [@jilei-hao](https://discourse.itk.org/u/jilei-hao)\
**Post date:** [March 20, 2024, 9:31pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/3 "2024-03-20T21:31:44Z")

</div>

Thanks for the reply!

I did some experiments with the remote module today. And the template deduction issue persists once I plug it in. Here’s a testing program, and it reports same error as mentioned above. Any thoughts on where could the issue be?

```auto
#include <itkRLEImageRegionIterator.h>
#include <itkRLERegionOfInterestImageFilter.h>
#include <iostream>
#include <string>
#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>
#include <itkTimeProbe.h>
#include "itkTestingComparisonImageFilter.h"
#include <itkBinaryThresholdImageFilter.h>

//using namespace std;

typedef itk::Image<short, 3> Seg3DImageType;
typedef itk::Image<short, 2> Seg2DImageType;
typedef itk::Image<float, 3> Float3DImageType;

typedef itk::RLEImage<short> shortRLEImage;
typedef itk::RegionOfInterestImageFilter<shortRLEImage, shortRLEImage> roiType;

Seg3DImageType::Pointer loadImage(const std::string filename)
{
    typedef itk::ImageFileReader<Seg3DImageType> SegReaderType;
    SegReaderType::Pointer sr = SegReaderType::New();
    sr->SetFileName(filename);
    sr->Update();
    return sr->GetOutput();
}

int main(int argc, char* argv[])
{
    itk::TimeProbe tp;
    std::cout << "Loading image: "; tp.Start();
    Seg3DImageType::Pointer inImage = loadImage(argv[1]);
    tp.Stop(); std::cout << tp.GetMean() * 1000 << " ms " << std::endl; tp.Reset();
        
    std::cout << "itk->RLE conversion: "; tp.Start();
    shortRLEImage::Pointer test = shortRLEImage::New();
    typedef itk::RegionOfInterestImageFilter<Seg3DImageType, shortRLEImage> inConverterType;
    inConverterType::Pointer inConv = inConverterType::New();
    inConv->SetInput(inImage);
    inConv->SetRegionOfInterest(inImage->GetLargestPossibleRegion());
    inConv->Update();
    test = inConv->GetOutput();
    tp.Stop(); std::cout << tp.GetMean() * 1000 << " ms " << std::endl; tp.Reset();

    auto fltThreshold = itk::BinaryThresholdImageFilter<shortRLEImage, Float3DImageType>::New();
    fltThreshold->SetInput(test);
    fltThreshold->SetLowerThreshold(0);
    fltThreshold->SetUpperThreshold(1);
    fltThreshold->SetInsideValue(1);
    fltThreshold->SetOutsideValue(0);
    fltThreshold->Update();

    auto out = fltThreshold->GetOutput();
    out->Print(std::cout);

    return 0;
}

```

Error Message:

[50%] Building CXX object CMakeFiles/RLETest.dir/main.cxx.o  
In file included from /Users/jileihao/dev/sandbox/RLETest/main.cxx:9:  
In file included from /Users/jileihao/dev/itk-dev/itk/Modules/Filtering/Thresholding/include/itkBinaryThresholdImageFilter.h:21:  
In file included from /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkUnaryFunctorImageFilter.h:145:  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkUnaryFunctorImageFilter.hxx:88:30: error: no viable constructor or deduction guide for deduction of template arguments of ‘ImageScanlineConstIterator’  
ImageScanlineConstIterator inputIt(inputPtr, inputRegionForThread);  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Filtering/Thresholding/include/itkBinaryThresholdImageFilter.h:221:3: note: in instantiation of member function ‘itk::UnaryFunctorImageFilter\<itk::RLEImage\<short, 3\>, itk::Image\<float, 3\>, itk::Functor::BinaryThreshold\<short, float\>\>::DynamicThreadedGenerateData’ requested here  
BinaryThresholdImageFilter();  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Filtering/Thresholding/include/itkBinaryThresholdImageFilter.h:150:15: note: in instantiation of member function ‘itk::BinaryThresholdImageFilter\<itk::RLEImage\<short, 3\>, itk::Image\<float, 3\>\>::BinaryThresholdImageFilter’ requested here  
itkNewMacro(Self);  
^  
/Users/jileihao/dev/sandbox/RLETest/main.cxx:78:91: note: in instantiation of member function ‘itk::BinaryThresholdImageFilter\<itk::RLEImage\<short, 3\>, itk::Image\<float, 3\>\>::New’ requested here  
auto fltThreshold = itk::BinaryThresholdImageFilter\<shortRLEImage, Float3DImageType\>::New();  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:106:3: note: candidate template ignored: substitution failure [with TImage = itk::RLEImage\<short, 3\>]: cannot reference member of primary template because deduced class template specialization ‘ImageScanlineConstIterator\<itk::RLEImage\<short, 3\>\>’ is instantiated from a partial specialization  
ImageScanlineConstIterator(const TImage \* ptr, const RegionType & region)  
^ ~~~~~~~~~~  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:267:1: note: candidate template ignored: could not match ‘SmartPointer’ against ‘const itk::RLEImage\<short, 3\> \*’  
ImageScanlineConstIterator(SmartPointer, const typename TImage::RegionType &)  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:119:3: note: candidate function template not viable: requires single argument ‘it’, but 2 arguments were provided  
ImageScanlineConstIterator(const ImageIterator & it)  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:135:3: note: candidate function template not viable: requires single argument ‘it’, but 2 arguments were provided  
ImageScanlineConstIterator(const ImageConstIterator & it)  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:64:27: note: candidate function template not viable: requires 1 argument, but 2 were provided  
class ITK\_TEMPLATE\_EXPORT ImageScanlineConstIterator : public ImageConstIterator  
^  
/Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:97:3: note: candidate function template not viable: requires 0 arguments, but 2 were provided  
ImageScanlineConstIterator()  
^  
1 error generated.  
make[2]: \*\*\* [CMakeFiles/RLETest.dir/main.cxx.o] Error 1  
make[1]: \*\*\* [CMakeFiles/RLETest.dir/all] Error 2  
make: \*\*\* [all] Error 2

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [March 20, 2024, 11:22pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/4 "2024-03-20T23:22:36Z")

</div>

It compiles for me:

```log
Build started at 19:20...
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>1>Checking Build System
1>CMake is re-running because C:/Misc/Tester/CMakeFiles/generate.stamp is out-of-date.
1> the file 'C:/Dev/ITK-vs22/ITKConfig.cmake'
1> is newer than 'C:/Misc/Tester/CMakeFiles/generate.stamp.depend'
1> result='-1'
1>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
1>-- ITK is setting tester's MSVC_RUNTIME_LIBRARY to dynamic
1>-- Configuring done (0.3s)
1>-- Generating done (0.1s)
1>-- Build files have been written to: C:/Misc/Tester
2>------ Build started: Project: tester, Configuration: Debug x64 ------
2>tester.cpp
2>tester.vcxproj -> C:\Misc\Tester\Debug\tester.exe
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration 
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========
========== Build completed at 19:21 and took 07.606 seconds ==========

```

---

<div class="post-metadata">

**Author:** ![jilei-hao](https://discourse.itk.org/user_avatar/discourse.itk.org/jilei-hao/32/2876_2.png) [@jilei-hao](https://discourse.itk.org/u/jilei-hao)\
**Post date:** [March 21, 2024, 8:07pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/5 "2024-03-21T20:07:21Z")

</div>

Hmm. Which ITK commits are you building with? Are there any cmake flags I could try?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [March 21, 2024, 8:08pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/6 "2024-03-21T20:08:27Z")

</div>

This was building ITK 5.4RC2, with `Module_RLEImage` turned ON.

---

<div class="post-metadata">

**Author:** ![jilei-hao](https://discourse.itk.org/user_avatar/discourse.itk.org/jilei-hao/32/2876_2.png) [@jilei-hao](https://discourse.itk.org/u/jilei-hao)\
**Post date:** [March 21, 2024, 10:18pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/7 "2024-03-21T22:18:04Z")

</div>

It’s still happening for me on macOS build with `Apple clang version 14.0.0 `.

I was able to narrow down the issue a little.

So this block not working:

```auto
const shortRLEImage *constRLE = shortRLEImage::New();
itk::ImageScanlineConstIterator it(constRLE, constRLE->GetLargestPossibleRegion());

```

But this works:

```auto
const itk::Image<float, 3> *constFloat = itk::Image<float, 3>::New();
itk::ImageScanlineConstIterator it(constFloat, constFloat->GetLargestPossibleRegion());

```

I think the most important error message pointing to this line (which was newly added to 5.4): [ITK/Modules/Core/Common/include/itkImageScanlineConstIterator.h at v5.4rc02 · InsightSoftwareConsortium/ITK · GitHub](https://github.com/InsightSoftwareConsortium/ITK/blob/v5.4rc02/Modules/Core/Common/include/itkImageScanlineConstIterator.h#L267)  
with the message “candidate template ignored: could not match ‘SmartPointer’ against ‘const itk::RLEImage\<short, 3\> \*’  
ImageScanlineConstIterator(SmartPointer, const typename TImage::RegionType &)”

Is there any way to make this deduction guide work for RLEImages?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [March 21, 2024, 11:04pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/8 "2024-03-21T23:04:43Z")

</div>

@Niels_Dekker any ideas?

---

<div class="post-metadata">

**Author:** ![Niels\_Dekker](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Post date:** [March 29, 2024, 1:12pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/9 "2024-03-29T13:12:43Z")

</div>

Sorry for being late! Did `ImageScanlineConstIterator` support RLEImage before? I’m asking, because I just gave it a try, and got: `itkImageConstIterator.h(117,43): error C2039: 'PixelContainer': is not a member of 'itk::RLEImage<unsigned short,3,unsigned short>'`

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [March 29, 2024, 1:35pm UTC](https://discourse.itk.org/t/local-rleimage-compiling-errors-with-itk5-4/6533/10 "2024-03-29T13:35:03Z")

</div>

There is a follow-up GitHub issue with more discussion:

> <https://github.com/InsightSoftwareConsortium/ITK/issues/4537>
>
> \<!-- The text within this markup is a comment, and is intended to provide
> guide…lines to open an issue for the ITK repository. This text will not
> be part of the issue. --\>
> 
> 
> \<!-- Before submitting an issue, please check that your issue has not been
> already filed. --\>
> 
> \### Description
> 
> Compile time error thrown when using \`itkRLEImage\` with filters such as \`BinaryThresholdImageFilter\`. It was complaining about "no viable constructor or deduction guide for deduction of template arguments of ‘ImageScanlineConstIterator’"
> 
> 
> 
> \### Steps to Reproduce
> 
> \<!--
> 1. \[First Step\]
> 2. \[Second Step\]
> 3. \[and so on...\]
> 
> Provide a minimal, complete, compilable, and verifiable example (commonly
> abbreviated as MWE, Minimal Working Example, or sometimes referred to as SSEE,
> Short, Self Contained, Correct (Compilable) Example, SSCCE) or code snippet,
> either through a GitHub gist (https://gist.github.com/) or providing your own
> files (including your source code, \`CMakeLists.txt\` file if applicable, and your
> data) reproducing the issue or showing an incorrect result. --\>
> 
> https://github.com/jilei-hao/RLETest/tree/main
> 
> 
> \### Expected behavior
> 
> 
> Code compiles without error.
> \### Actual behavior
> 
> 
> When compiling target \`RLEImageTest\`
> 
> \`\`\`none
> \[50%\] Building CXX object CMakeFiles/RLETest.dir/main.cxx.o
> In file included from /Users/jileihao/dev/sandbox/RLETest/main.cxx:9:
> In file included from /Users/jileihao/dev/itk-dev/itk/Modules/Filtering/Thresholding/include/itkBinaryThresholdImageFilter.h:21:
> In file included from /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkUnaryFunctorImageFilter.h:145:
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkUnaryFunctorImageFilter.hxx:88:30: error: no viable constructor or deduction guide for deduction of template arguments of 'ImageScanlineConstIterator'
> ImageScanlineConstIterator inputIt(inputPtr, inputRegionForThread);
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Filtering/Thresholding/include/itkBinaryThresholdImageFilter.h:221:3: note: in instantiation of member function 'itk::UnaryFunctorImageFilter\<itk::RLEImage\<short, 3\>, itk::Image\<float, 3\>, itk::Functor::BinaryThreshold\<short, float\>\>::DynamicThreadedGenerateData' requested here
> BinaryThresholdImageFilter();
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Filtering/Thresholding/include/itkBinaryThresholdImageFilter.h:150:15: note: in instantiation of member function 'itk::BinaryThresholdImageFilter\<itk::RLEImage\<short, 3\>, itk::Image\<float, 3\>\>::BinaryThresholdImageFilter' requested here
> itkNewMacro(Self);
> ^
> /Users/jileihao/dev/sandbox/RLETest/main.cxx:50:91: note: in instantiation of member function 'itk::BinaryThresholdImageFilter\<itk::RLEImage\<short, 3\>, itk::Image\<float, 3\>\>::New' requested here
> auto fltThreshold = itk::BinaryThresholdImageFilter\<shortRLEImage, Float3DImageType\>::New();
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:106:3: note: candidate template ignored: substitution failure \[with TImage = itk::RLEImage\<short, 3\>\]: cannot reference member of primary template because deduced class template specialization 'ImageScanlineConstIterator\<itk::RLEImage\<short, 3\>\>' is instantiated from a partial specialization
> ImageScanlineConstIterator(const TImage \* ptr, const RegionType & region)
> ^ ~~~~~~~~~~
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:267:1: note: candidate template ignored: could not match 'SmartPointer\<type-parameter-0-0\>' against 'const itk::RLEImage\<short, 3\> \*'
> ImageScanlineConstIterator(SmartPointer\<TImage\>, const typename TImage::RegionType &)
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:119:3: note: candidate function template not viable: requires single argument 'it', but 2 arguments were provided
> ImageScanlineConstIterator(const ImageIterator\<TImage\> & it)
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:135:3: note: candidate function template not viable: requires single argument 'it', but 2 arguments were provided
> ImageScanlineConstIterator(const ImageConstIterator\<TImage\> & it)
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:64:27: note: candidate function template not viable: requires 1 argument, but 2 were provided
> class ITK\_TEMPLATE\_EXPORT ImageScanlineConstIterator : public ImageConstIterator\<TImage\>
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:97:3: note: candidate function template not viable: requires 0 arguments, but 2 were provided
> ImageScanlineConstIterator()
> ^
> 1 error generated.
> make\[3\]: \*\*\* \[CMakeFiles/RLETest.dir/main.cxx.o\] Error 1
> make\[2\]: \*\*\* \[CMakeFiles/RLETest.dir/all\] Error 2
> make\[1\]: \*\*\* \[CMakeFiles/RLETest.dir/rule\] Error 2
> make: \*\*\* \[RLETest\] Error 2
> \`\`\`
> 
> When compiling target \`RLEIteratorTest\`
> \`\`\`none
> \[50%\] Building CXX object CMakeFiles/RLEIteratorTest.dir/RLEIteratorTest.cxx.o
> /Users/jileihao/dev/sandbox/RLETest/RLEIteratorTest.cxx:13:35: error: no viable constructor or deduction guide for deduction of template arguments of 'ImageScanlineConstIterator'
> itk::ImageScanlineConstIterator it2(constRLE, constRLE-\>GetLargestPossibleRegion());
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:106:3: note: candidate template ignored: substitution failure \[with TImage = itk::RLEImage\<short, 3\>\]: cannot reference member of primary template because deduced class template specialization 'ImageScanlineConstIterator\<itk::RLEImage\<short, 3\>\>' is instantiated from a partial specialization
> ImageScanlineConstIterator(const TImage \* ptr, const RegionType & region)
> ^ ~~~~~~~~~~
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:267:1: note: candidate template ignored: could not match 'SmartPointer\<type-parameter-0-0\>' against 'const itk::RLEImage\<short, 3\> \*'
> ImageScanlineConstIterator(SmartPointer\<TImage\>, const typename TImage::RegionType &)
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:119:3: note: candidate function template not viable: requires single argument 'it', but 2 arguments were provided
> ImageScanlineConstIterator(const ImageIterator\<TImage\> & it)
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:135:3: note: candidate function template not viable: requires single argument 'it', but 2 arguments were provided
> ImageScanlineConstIterator(const ImageConstIterator\<TImage\> & it)
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:64:27: note: candidate function template not viable: requires 1 argument, but 2 were provided
> class ITK\_TEMPLATE\_EXPORT ImageScanlineConstIterator : public ImageConstIterator\<TImage\>
> ^
> /Users/jileihao/dev/itk-dev/itk/Modules/Core/Common/include/itkImageScanlineConstIterator.h:97:3: note: candidate function template not viable: requires 0 arguments, but 2 were provided
> ImageScanlineConstIterator()
> ^
> 1 error generated.
> make\[3\]: \*\*\* \[CMakeFiles/RLEIteratorTest.dir/RLEIteratorTest.cxx.o\] Error 1
> make\[2\]: \*\*\* \[CMakeFiles/RLEIteratorTest.dir/all\] Error 2
> make\[1\]: \*\*\* \[CMakeFiles/RLEIteratorTest.dir/rule\] Error 2
> make: \*\*\* \[RLEIteratorTest\] Error 2
> \`\`\`
> 
> \### Reproducibility
> 
> 
> 100%
> \### Versions
> 
> \<!-- If a tagged version, you can get this information by inspecting the
> \`ITK\_VERSION\_MAJOR\` \`ITK\_VERSION\_MINOR\` and \`ITK\_VERSION\_PATCH\` variable
> values in the \`ITKConfig.cmake\` file.
> 
> If the commit number is required, run \`$ git rev-parse --short HEAD\`. --\>
> ITK 5.4-rc02 with Module\_RLEImage=ON
> 
> \### Environment
> 
> \<!-- Which your OS, CMake, and compiler versions are, or your Python and
> installed package versions are. --\>
> MacOS 12.7.4, Apple Clang 14.0.0, CMake 3.25.2
> 
> \### Additional Information
> 
> \<!-- Any additional information, configuration or data that might be necessary
> to reproduce the issue. --\>
> 
> 
> \<!-- \*\*Note\*\*: Use issues for their purpose; issues are not for code help. Need
> help? Ask your question at ITK discourse (https://discourse.itk.org/). --\>
