Hi,

I am having trouble export my image object calculations from eCognition.  I've done this in the past successfully, but it's been awhile so maybe I'm forgetting a step?

I've run a multiresolution segmentation on a WV-2 satellite scene.  I then used the Feature View window to generate multiple layer values for the objects and texture calculations and preview them.  These include mean brightness, Max Diff., NDVI, HSI, Homogeneity, Contrast, etc.

I then go to Export > Export Results... and set up the export results window with:
Export Type: Raster file
Content Type: Image objects
Format: tif
Level: Level 1
Classes: unclassified
Features: Brightness

When I hit Export, the program takes several minutes to run and produces a raster file.  However, the raster file is a strange pattern of values that does not match the features in my scene or what was displayed for Brightness in eCognition. 

Has anyone encountered this before?  Am I missing a step somewhere?

Thanks!

5 comments

  • Christian Weise

    Hi Ben,

    The algorithm 'export thematic raster files' uses the object ID as pixel value and store the features as attributes in the corresponding CSV file. If you want to store the feature values as pixel values you can 'create temporary image layer' based on the feature and export them with 'export image' algorithm. As alternative you can also use the 'export current view' algorithm to export the visualization of a feature to a raster (you have to setup the view before, of course). I believe the 'create temporary image layer' and 'export image' should solve your problem. 

    Cheers,

    Christian

  • Matthias Staengel

    Thanks Christian! You just saved me a lot of time ;). Actually, in the provided RS I am following the principle workflow that Christian described:

    1. create temporary image layer
    2. export image

    Cheers,

    Matthias

  • Matthias Staengel

    Hi Ben,

    I will need to have a look at this myself. I am not an experienced thematic raster user ;). When I exported a thematic raster and loaded it again, it showed actually the Object ID (these are probably the strange patterns that you are seeing). However, it created also a csv file which holds all information that I exported.

    I found a Rule Set that I created a few years back which exports desired features as rasters. Please download it here. You can simply run it and I guess it should work just fine. If you want to change the features that are exported, you will need to change the feature array. Just go ahead and alter the RS based on your needs

    Does this do what you are looking for? You also could create a stacked raster, so you only have one file. Depends on what you want ;).

    Cheers,

    Matthias

  • Gustafson, Ben

    It looks like my work around for this in the past was to create an export step in the process tree and export a shapefile containing an attribute table of all the image object calculations I am interested in.  I then created rasters from the polygons and attributes in ArcGIS.

    I guess I'm still left wondering why eCognition can't export these values as raster files successfully?

  • Gustafson, Ben

    Thank you Matthias and Christian! 

     

Recent Discussions

Need more help?

Enter Knowledge Base Contact Support