Skip to main content
Question

Colour raster TIFF to Black and White raster TIFF

  • April 18, 2013
  • 4 replies
  • 152 views

Hi....I am trying to figure out how to convert 4 band high resolution raster TIFFs to black and white raster TIFFs....I'm not have much luck searching around.....I'm using FME 2013 Pro.....any tips are greatly appreciated.....Scott
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.

4 replies

david_r
Celebrity
  • April 18, 2013
Hi,

 

 

I have personally never tried this, but I would start by looking at the RasterInterpretationCoercer where it is possible to set the destination interpretation type to something like GRAY8 or GRAY16.

 

 

If you have no further processing to be done using FME, you could also consider doing it with a command line tool in ImageMagick.

 

 

David

sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • April 19, 2013
I would loko at the RasterExpressionEvaluator together with some formulas here: 

 

 

http://en.wikipedia.org/wiki/Grayscale

 

 

Should absolutely be possible!

davideagle
Contributor
Forum|alt.badge.img+22
  • Contributor
  • April 24, 2013
The RasterExpressionEvaluator is possible using a formula similar to the one here. Alternatively I have also done this crudely by using the:

 

 

RasterInterpretationCoercer - to coerce the image to greyscale, then

 

RasterBandMinMaxExtractor - to extract the min max of the cell range, then followed by 2

 

RasterCellValueReplacer(s) - where I set say values within the range, perhaps 0 to 127 to 0 (black) and the second transformer 127 to 255 to a new value of 255 (white). 

 

 

Then write out the raster. Hope that helps.

  • July 10, 2013
right, there are plenty of software out there that can have futher tiff processing vb.net.  raster tiff to black and white is not a simple job at all. i have experienced that.