Skip to main content
Solved

Merge RGB and IR channels into one image

  • February 27, 2019
  • 2 replies
  • 54 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).
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jdh
Contributor
Forum|alt.badge.img+36
  • Contributor
  • 2001 replies
  • 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
  • 19 replies
  • March 1, 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).

thanks for your answer ,this works!