Skip to main content

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

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).

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!

 


Reply