Opened 13 years ago

Closed 12 years ago

#1268 closed enhancement (invalid)

r.out.vtk does not work as desired for RGB images

Reported by: voncasec Owned by: grass-dev@…
Priority: normal Milestone: 6.4.1
Component: Default Version: svn-releasebranch64
Keywords: vtk Cc:
CPU: x86-64 Platform: Linux

Description

r.out.vtk does not allow a user to export an RGB series of images to vtk format without specifying a required image as well.

For example, running r.out.vtk for an rgb series, as described in the user manual, returns the follwing:

r.out.vtk rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green elevation=elevation.10m output=/tmp/out.vtk
ERROR:
Parameter 'input' (Name of input raster map(s)) is missing.

Running r.out.vtk for an rgb series as described below creates the VTK file, but it is not viewable as an RGB image in Mayavi.

r.out.vtk input=FCIR_Composite rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green elevation=elevation.10m output=/tmp/out.vtk

To create the image for viewing in Mayavi, I currently have to convert the image channels to rast3d layers (r.to.rast3), then export to vtk using the r3.out.vtk option

r3.out.vtk top=elevation.10m bottom=elevation.10m rgbmaps=rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green output=/tmp/out.vtk

Can the required option be changed with r.out.vtk so that it will not prevent a user from exporting RGB channels only to vtk.

Change History (1)

in reply to:  description comment:1 by neteler, 12 years ago

Resolution: invalid
Status: newclosed

Replying to voncasec:

r.out.vtk does not allow a user to export an RGB series of images to vtk format without specifying a required image as well.

For example, running r.out.vtk for an rgb series, as described in the user manual, returns the follwing:

r.out.vtk rgbmaps=Landsat_NIR,Landsat_Red,Landsat_Green elevation=elevation.10m output=/tmp/out.vtk
ERROR:
Parameter 'input' (Name of input raster map(s)) is missing.

For a working example (the input map is the elevation map), see

http://grass.osgeo.org/wiki/GRASS_and_Paraview#RGB_visualization

I am not sure that this is a valid bug report. I have improved the manual page of r.out.vtk (for all GRASS versions):

http://grass.osgeo.org/grass64/manuals/html64_user/r.out.vtk.html

Closing, feel free to reopen if needed.

Note: See TracTickets for help on using tickets.