Hi,
I've attached an OpenEV tool that should do this. Install it by copying
it to OpenEV's "tools" directory. To use it, load up your three rasters
as the top three layers in a view, then select "Tools/RGB Composite" from
the menu. The top layer should be red, middle green, lowest blue. If you
want to do this as part of an automatic script that takes your three files
as an argument and launches openev, then you could modify openev.py to add
a call to the tool's rgb_cb function after the files are opened (the tools
are stored as a list of tuples in app.Tool_List- each tuple has the tool's
name as the first item and the tool instance as the second; the order of
the tools will depend on what you have available). On my machine, calling
app.Tool_List[6][1].rgb_cb() will force the rgb composite code to run.
Gillian
> Dear Gilian,
> Thanks a lot again. Now OpenEV might be used as tool for inspection SLC
> images
> before coregistration for InSAR processing.
> I think that the hacky way which you have send me might be also inserted
> into
> a script do do visualization automatically. If you will able to send me
> some
> suggestions how to do it quickly it wull be great!
>
> Thanks
>
> Zbigniew
>
>> OpenEV isn't really set up to do this directly. There's a hacky way you
>> could do it using the python shell though:
>
>
>>
>> 1) Load your images as separate layers in a single OpenEV view.
>> 2) In the Layer dialog (Edit/Layers), left click on the layer that you
>> want to be red so that it is activated (row turns blue).
>> 3) Launch the python shell (Edit/Python Shell), and in it enter:
>>
>> import gview
>> lyr1=gview.app.sel_manager.get_active_layer()
>> lyr1.texture_mode_set(1,[1,0,0,1])
>> lyr1.blend_mode_set(3)
>>
>> 4) In the layer dialog, activate the layer that you want to be blue,
>> then
>> enter in the python shell:
>>
>> lyr2=gview.app.sel_manager.get_active_layer()
>> lyr2.texture_mode_set(1,[0,0,1,1])
>> lyr2.blend_mode_set(3)
>>
>> 5) In the layer dialog, activate the layer that you want to be green,
>> then
>> enter in the python shell:
>>
>> lyr3=gview.app.sel_manager.get_active_layer()
>> lyr3.texture_mode_set(1,[0,1,0,1])
>> lyr3.blend_mode_set(3)
>>
>>
>> These commands alter ther properties of the layers- the texture mode
>> call
>> resets the modulation colour of the layer, and the blend mode call
>> allows
>> other layers' contributions to show through. If this is something you
>> will be doing a lot, you would probably be better off customizing your
>> version of OpenEV or adding a tool to allow you to do this more easily
>> (a
>> customized version of the open function that sets the texture and blend
>> properties in addition to the usual code).
>>
>>
>> Gillian
>>
>> > OK. Thanks a lot for all answers.
>> > I am trying now with vrt but it seems to be more tricky.
>> > i am looking a as much simple as possible solution because i need a
>> > simple
>> >
>> > tool just to inspect the files:
>> >>If the rasters are different sizes, they can be combined in an
>> >> openev view for display,
>> >
>> > OK. But is there any way to display them in colors?
>> >
>> > regards
>> >
>> > Zbigniew
>> >
>> >> but not in a single file because the bands in a
>> >> gdal dataset should all have the same number of pixels and lines.
>> >>
>> >>
>> >> Gillian
>> >>
>> >> > Hi all,
>> >> >
>> >> > I am trying to use OpenEV to create color composition of different
>> >>
>> >> files
>> >>
>> >> > instead of different bands and I have no idea how to do it. I have
>> a
>> >>
>> >> set
>> >>
>> >> > of
>> >> > SAR images over the same area and i am able to display them in
>> OpenEV
>> >>
>> >> on
>> >>
>> >> > top
>> >> > of each other but how to set them as different RGB bands?
>> >> >
>> >> > thanks a lot
>> >> >
>> >> > Regards
>> >> >
>> >> > Zbigniew
>> >> > --
>> >> > dr Zbigniew Perski
>> >> > Geological Visualization Laboratory
>> >> > Department of Fundamental Geology
>> >> > Faculty of Earth Sciences at UNIVERSITY OF SILESIA
>> >> > Bedzinska 60, 41-200 Sosnowiec
>> >> > POLAND
>> >> > fax: +48 32 2915865
>> >> > phone: +48 32 3689420
>> >> > GNU/LINUX user #333288
>> >> >
>> >> >
>> >> > -------------------------------------------------------
>> >> > This SF.Net email is sponsored by:
>> >> > Power Architecture Resource Center: Free content, downloads,
>> >>
>> >> discussions,
>> >>
>> >> > and more. http://solutions.newsforge.com/ibmarch.tmpl
>> >> > _______________________________________________
>> >> > Openev-discuss mailing list
>> >> > Openev-discuss@...
>> >> > https://lists.sourceforge.net/lists/listinfo/openev-discuss
>> >
>> > --
>> > dr Zbigniew Perski
>> > Geological Visualization Laboratory
>> > Department of Fundamental Geology
>> > Faculty of Earth Sciences at UNIVERSITY OF SILESIA
>> > Bedzinska 60, 41-200 Sosnowiec
>> > POLAND
>> > fax: +48 32 2915865
>> > phone: +48 32 3689420
>> > GNU/LINUX user #333288
>> >
>> >
>> > -------------------------------------------------------
>> > This SF.Net email is sponsored by:
>> > Power Architecture Resource Center: Free content, downloads,
>> discussions,
>> > and more. http://solutions.newsforge.com/ibmarch.tmpl
>> > _______________________________________________
>> > Openev-discuss mailing list
>> > Openev-discuss@...
>> > https://lists.sourceforge.net/lists/listinfo/openev-discuss
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by:
>> Power Architecture Resource Center: Free content, downloads,
>> discussions,
>> and more. http://solutions.newsforge.com/ibmarch.tmpl
>> _______________________________________________
>> Openev-discuss mailing list
>> Openev-discuss@...
>> https://lists.sourceforge.net/lists/listinfo/openev-discuss
>
> --
> dr Zbigniew Perski
> Geological Visualization Laboratory
> Department of Fundamental Geology
> Faculty of Earth Sciences at UNIVERSITY OF SILESIA
> Bedzinska 60, 41-200 Sosnowiec
> POLAND
> fax: +48 32 2915865
> phone: +48 32 3689420
> GNU/LINUX user #333288
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Openev-discuss mailing list
> Openev-discuss@...
> https://lists.sourceforge.net/lists/listinfo/openev-discuss
>
|