Skip to main content
Solved

Merge RGB and IR channels into one image

  • February 27, 2019
  • 2 replies
  • 42 views

Forum|alt.badge.img

Hi ,

I have images with RGB channels and images with IR channels .I would like to merge images that have the same name together to be 4 channels image ,would you please tell how can i do that with FME

Best answer by jdh

If the filenames are identical you can use the RasterBandCombiner (RBC) with group-by set to fme_basename.

 

If the filenames are different like xx_RGB, xx_IR, then you can use a SubstringExtractor, StringSearcher etc to get just the root of the name (xx) and use that as a group by.

 

 

Regardless, you want to make sure that your RGB image arrives at the RBC before the corresponding IR image. If you can't guarantee that in the Reader Order then use a Sorter before the RBC.

 

 

Fanout your data on the basename (or relevant group-by attribute).
View original
Did this help you find an answer to your question?

2 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • February 27, 2019

If the filenames are identical you can use the RasterBandCombiner (RBC) with group-by set to fme_basename.

 

If the filenames are different like xx_RGB, xx_IR, then you can use a SubstringExtractor, StringSearcher etc to get just the root of the name (xx) and use that as a group by.

 

 

Regardless, you want to make sure that your RGB image arrives at the RBC before the corresponding IR image. If you can't guarantee that in the Reader Order then use a Sorter before the RBC.

 

 

Fanout your data on the basename (or relevant group-by attribute).

Forum|alt.badge.img
  • Author
  • March 1, 2019
jdh wrote:

If the filenames are identical you can use the RasterBandCombiner (RBC) with group-by set to fme_basename.

 

If the filenames are different like xx_RGB, xx_IR, then you can use a SubstringExtractor, StringSearcher etc to get just the root of the name (xx) and use that as a group by.

 

 

Regardless, you want to make sure that your RGB image arrives at the RBC before the corresponding IR image. If you can't guarantee that in the Reader Order then use a Sorter before the RBC.

 

 

Fanout your data on the basename (or relevant group-by attribute).

thanks for your answer ,this works!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings