Falsecolor auto scale

Dear All,

I am trying to programmatically convert a number of radiance images into
their falsecolor equivalent. As the images display a wide range of
possible values I am trying to figure out a method for automatically
adjust the scale.

The manual page of falsecolor reads: "If the argument given to -s begins
with an "a" for "auto," then the maximum is used for scaling the
result." Which is exactly what I need, unfortunately it does not work
for me: no error is thrown but the scale is always the standard 0 to
1000.

This is the syntax that I am using:

" Falsecolor -ip mypic.hdr -s a -n 10 -l Lux > mypic_fc.hdr "

I am using Radiance 3.9 on Windows, which might be the reason.

I have also tried this on the real useful falsecolor2 by Thomas Bleicher
(thanks!!) and in this case I receive the error 'bad option'.

Does anyone have any suggestion/clue?

Thanks in advance,
Best,

Giovanni

Giovanni.

The "-s auto" option uses phisto and sed to work out the maximum scale
from the image. One or both may not be available on your system. BTW:
Where does the falsecolor binary come from? The 3.9 MinGW bundle does
not have it, iirc. Perhaps that feature is not implemented at all.

As for falsecolor2 I just haven't implemented the "auto" option.

If you can script a bit you can try to find the max value with
pextreme and calculate a maximum scale from that.

Regards,
Thomas

···

On Thu, May 6, 2010 at 3:19 PM, Giovanni Betti <[email protected]> wrote:

Dear All,

I am trying to programmatically convert a number of radiance images into
their falsecolor equivalent. As the images display a wide range of
possible values I am trying to figure out a method for automatically
adjust the scale.

The manual page of falsecolor reads: "If the argument given to -s begins
with an "a" for "auto," then the maximum is used for scaling the
result." Which is exactly what I need, unfortunately it does not work
for me: no error is thrown but the scale is always the standard 0 to
1000.

This is the syntax that I am using:

" Falsecolor -ip mypic.hdr -s a -n 10 -l Lux > mypic_fc.hdr "

I am using Radiance 3.9 on Windows, which might be the reason.

I have also tried this on the real useful falsecolor2 by Thomas Bleicher
(thanks!!) and in this case I receive the error 'bad option'.

Does anyone have any suggestion/clue?

Thanks in advance,
Best,

Giovanni

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi,

For one or multiple false color images generation you can use
RadDisplay<http://deluminaelab.com/en/raddisplay_details.html>.

You have an option for palette type "Image based proportional", and it makes
palette according to values in the image, You can change number of colors,
and also start and end color for the palette.

There is an option to make multiple FC images at once using common color
palette and scale.
On images manipulatio tab you have a section "Create false color images",
and there you can define multiple images and create for the same palette FC
images.

Note that scale and colors palette is made littlebit different then in
Radiance (but still based on colors in original False color program).

If you have futher questions on this topic, you can contact me here on list
or on private mail.

Regards,
Marija

···

On Thu, May 6, 2010 at 4:19 PM, Giovanni Betti <[email protected] > wrote:

Dear All,

I am trying to programmatically convert a number of radiance images into
their falsecolor equivalent. As the images display a wide range of
possible values I am trying to figure out a method for automatically
adjust the scale.

The manual page of falsecolor reads: "If the argument given to -s begins
with an "a" for "auto," then the maximum is used for scaling the
result." Which is exactly what I need, unfortunately it does not work
for me: no error is thrown but the scale is always the standard 0 to
1000.

This is the syntax that I am using:

" Falsecolor -ip mypic.hdr -s a -n 10 -l Lux > mypic_fc.hdr "

I am using Radiance 3.9 on Windows, which might be the reason.

I have also tried this on the real useful falsecolor2 by Thomas Bleicher
(thanks!!) and in this case I receive the error 'bad option'.

Does anyone have any suggestion/clue?

Thanks in advance,
Best,

Giovanni

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Thomas,

Thanks for the quick reply,
I thought about the possibility of using pextreme, although I was really
hoping somebody had that already worked that out for me! :wink: Moreover the
solution implemented by Greg with -s auto is so much more elegant than
what I could do with pextreme!

Thanks anyway and thanks for falsecolor2 and wxfalsecolor, they are
really nice and useful tools!

Best,

G

···

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Bleicher
Sent: 06 May 2010 15:55
To: Radiance general discussion
Subject: Re: [Radiance-general] Falsecolor auto scale

Giovanni.

The "-s auto" option uses phisto and sed to work out the maximum scale
from the image. One or both may not be available on your system. BTW:
Where does the falsecolor binary come from? The 3.9 MinGW bundle does
not have it, iirc. Perhaps that feature is not implemented at all.

As for falsecolor2 I just haven't implemented the "auto" option.

If you can script a bit you can try to find the max value with
pextreme and calculate a maximum scale from that.

Regards,
Thomas

On Thu, May 6, 2010 at 3:19 PM, Giovanni Betti <[email protected]> wrote:

Dear All,

I am trying to programmatically convert a number of radiance images

into

their falsecolor equivalent. As the images display a wide range of
possible values I am trying to figure out a method for automatically
adjust the scale.

The manual page of falsecolor reads: "If the argument given to -s

begins

with an "a" for "auto," then the maximum is used for scaling the
result." Which is exactly what I need, unfortunately it does not work
for me: no error is thrown but the scale is always the standard 0 to
1000.

This is the syntax that I am using:

" Falsecolor -ip mypic.hdr -s a -n 10 -l Lux > mypic_fc.hdr "

I am using Radiance 3.9 on Windows, which might be the reason.

I have also tried this on the real useful falsecolor2 by Thomas

Bleicher

(thanks!!) and in this case I receive the error 'bad option'.

Does anyone have any suggestion/clue?

Thanks in advance,
Best,

Giovanni

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

If it can wait a day I can add a "-s auto" option with pextrem to
falsecolor2. I can't build a binary until this evening so if you
really need it this afternoon you have to install Python (if you can).

Thomas

···

On Thu, May 6, 2010 at 4:05 PM, Giovanni Betti <[email protected]> wrote:

Thomas,

Thanks for the quick reply,
I thought about the possibility of using pextreme, although I was really
hoping somebody had that already worked that out for me! :wink: Moreover the
solution implemented by Greg with -s auto is so much more elegant than
what I could do with pextreme!

Thanks anyway and thanks for falsecolor2 and wxfalsecolor, they are
really nice and useful tools!

Best,

G

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Bleicher
Sent: 06 May 2010 15:55
To: Radiance general discussion
Subject: Re: [Radiance-general] Falsecolor auto scale

Giovanni.

The "-s auto" option uses phisto and sed to work out the maximum scale
from the image. One or both may not be available on your system. BTW:
Where does the falsecolor binary come from? The 3.9 MinGW bundle does
not have it, iirc. Perhaps that feature is not implemented at all.

As for falsecolor2 I just haven't implemented the "auto" option.

If you can script a bit you can try to find the max value with
pextreme and calculate a maximum scale from that.

Regards,
Thomas

On Thu, May 6, 2010 at 3:19 PM, Giovanni Betti > <[email protected]> wrote:

Dear All,

I am trying to programmatically convert a number of radiance images

into

their falsecolor equivalent. As the images display a wide range of
possible values I am trying to figure out a method for automatically
adjust the scale.

The manual page of falsecolor reads: "If the argument given to -s

begins

with an "a" for "auto," then the maximum is used for scaling the
result." Which is exactly what I need, unfortunately it does not work
for me: no error is thrown but the scale is always the standard 0 to
1000.

This is the syntax that I am using:

" Falsecolor -ip mypic.hdr -s a -n 10 -l Lux > mypic_fc.hdr "

I am using Radiance 3.9 on Windows, which might be the reason.

I have also tried this on the real useful falsecolor2 by Thomas

Bleicher

(thanks!!) and in this case I receive the error 'bad option'.

Does anyone have any suggestion/clue?

Thanks in advance,
Best,

Giovanni

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

I guess an option like that would be rally useful,

I am controlling radiance through batch files written in ecotect
scripting (maybe not the most straightforward way of doing it but it
serves the purpose).I have no knowledge of python but I guess I can try
to make something with pextreme.
Anyway it would be nice to have such an option directly in falsecolor2
and I can wait until tomorrow :wink:

Thanks again,

G

···

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Bleicher
Sent: 06 May 2010 16:15
To: Radiance general discussion
Subject: Re: [Radiance-general] Falsecolor auto scale

If it can wait a day I can add a "-s auto" option with pextrem to
falsecolor2. I can't build a binary until this evening so if you
really need it this afternoon you have to install Python (if you can).

Thomas

On Thu, May 6, 2010 at 4:05 PM, Giovanni Betti <[email protected]> wrote:

Thomas,

Thanks for the quick reply,
I thought about the possibility of using pextreme, although I was

really

hoping somebody had that already worked that out for me! :wink: Moreover

the

solution implemented by Greg with -s auto is so much more elegant than
what I could do with pextreme!

Thanks anyway and thanks for falsecolor2 and wxfalsecolor, they are
really nice and useful tools!

Best,

G

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Bleicher
Sent: 06 May 2010 15:55
To: Radiance general discussion
Subject: Re: [Radiance-general] Falsecolor auto scale

Giovanni.

The "-s auto" option uses phisto and sed to work out the maximum scale
from the image. One or both may not be available on your system. BTW:
Where does the falsecolor binary come from? The 3.9 MinGW bundle does
not have it, iirc. Perhaps that feature is not implemented at all.

As for falsecolor2 I just haven't implemented the "auto" option.

If you can script a bit you can try to find the max value with
pextreme and calculate a maximum scale from that.

Regards,
Thomas

On Thu, May 6, 2010 at 3:19 PM, Giovanni Betti > <[email protected]> wrote:

Dear All,

I am trying to programmatically convert a number of radiance images

into

their falsecolor equivalent. As the images display a wide range of
possible values I am trying to figure out a method for automatically
adjust the scale.

The manual page of falsecolor reads: "If the argument given to -s

begins

with an "a" for "auto," then the maximum is used for scaling the
result." Which is exactly what I need, unfortunately it does not work
for me: no error is thrown but the scale is always the standard 0 to
1000.

This is the syntax that I am using:

" Falsecolor -ip mypic.hdr -s a -n 10 -l Lux > mypic_fc.hdr "

I am using Radiance 3.9 on Windows, which might be the reason.

I have also tried this on the real useful falsecolor2 by Thomas

Bleicher

(thanks!!) and in this case I receive the error 'bad option'.

Does anyone have any suggestion/clue?

Thanks in advance,
Best,

Giovanni

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Giovanni.

It's your lucky day! It turns out that I have all my packaging
requirements here on my work PC. I have added a "-s auto" option and
tested it a tiny bit. You have to do the rest.

I couldn't send you the file via PM so I have uploaded a zip with the
binary here:

https://sites.google.com/site/tbleicher/radiance/wxfalsecolor/falsecolor2.zip?attredirects=0&d=1

If the link doesn't work go the attachments at the bottom of the page.

To the rest of you out there: I really haven't done much testing. Use
at your own risk. There will be another release of
wxfalsecolor/falsecolor2 soon which will include this feature (and
more).

Thomas

Amazing!

At a quick test it works seamlessly!!!
Thanks a lot!

Best,

G

···

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Bleicher
Sent: 06 May 2010 17:00
To: Radiance general discussion
Subject: Re: [Radiance-general] Falsecolor auto scale

Giovanni.

It's your lucky day! It turns out that I have all my packaging
requirements here on my work PC. I have added a "-s auto" option and
tested it a tiny bit. You have to do the rest.

I couldn't send you the file via PM so I have uploaded a zip with the
binary here:

https://sites.google.com/site/tbleicher/radiance/wxfalsecolor/falsecolor
2.zip?attredirects=0&d=1

If the link doesn't work go the attachments at the bottom of the page.

To the rest of you out there: I really haven't done much testing. Use
at your own risk. There will be another release of
wxfalsecolor/falsecolor2 soon which will include this feature (and
more).

Thomas

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general