[Radiance-general] Removing black areas in imagemapping

Per Haugaard perhaugaard at yahoo.dk
Tue Jan 12 01:09:40 PST 2010


Hi Andrew,

Thank you for your reply. Nothing happens when I play with the FTINY. The image remains the same if I remove FTINY and also if I change the expecting rounding error to 2e-3 or larger. I guess the error might be elsewhere. 

Below you will find the input for the illum and falsecolor image.

# calculating illumince values on a virtual plan using vwrays
vwrays -x 600 -y 600 -vf views/kontor_ned.vp \
| rcalc -e '$1=$1; $2=$2; $3=0.8; $4=$4; $5=$5; $6=1' \
| rtrace -ab 3 -aa 0.1 -ar 128 -ad 512 -as 256 -fac -w -I -ov `vwrays -d -vf views/kontor_ned.vp -x 600 -y 600` \
octrees/kontor_CIE.oct > images/vwrays_illum.pic

# making falsecolor image of the illuminace image
falsecolor -n 10 -s 1000 -lw 0 -cl -i images/vwrays_illum.pic >
 images/vwrays_illum_falsecolor.pic

Below is the viewfile kontor_ned.vp

rview -vtl -vp 6.4 8.4 2.79 -vd 0 0 -1 -vu 1 0 0 -vh 16.6 -vv 12.8 -vo 0 -va 0 -vs 0 -vl 0

Below is the input for the working plane image:

void colorpict fc_val
7 red green blue images/vwrays_illum_falsecolor.pic fc_4.cal fc_u fc_v
0
0

fc_val glow fc_glow
0
0
4 10 10 10 0

fc_glow polygon office.working_plane
0
0
12
                     0.2                   0.2                     0.8
                     13.0                   0.2   
                 
 0.8
                     13.0                  16.8                     0.8
                     0.2                  16.8                     0.8

void mixpict mp
7 fc_glow void nonzero images/vwrays_illum_falsecolor.pic fc_4.cal fc_u fc_v
0
0

mp polygon
 office.working_plane.2
0
0
12
                        0.2                   0.2                       0.8
                        13.0                  0.2                       0.8
                       
 13.0                 16.8                       0.8
                        0.2                  16.8                       0.8

And below is the fc_4.cal file 

nonzero(r,g,b) = if(max(r,max(g,b))-FTINY, 1, 0);
fc_u = -(Py-16.6)/12.8;
fc_v = (Px-0.2)/12.8;

I have not been working with HDR images. Maybe you can update on how to easily convert from pic-files to hdr-files in Linux, so I can upload these for illustration purposes.

Best regards

Per,

--- Den man 11/1/10 skrev Andrew McNeil <andrew.mcneil at arup.com>:

Fra: Andrew McNeil
 <andrew.mcneil at arup.com>
Emne: Re: [Radiance-general] Removing black areas in imagemapping
Til: perhaugaard at yahoo.dk, "Radiance general discussion" <radiance-general at radiance-online.org>
Dato: mandag 11. januar 2010 19.19



Re: [Radiance-general] Removing black areas in imagemapping
Hi Per,



Perhaps you are experiencing rounding error larger than FTINY.  I’d suggest replacing FTINY with a larger value (ie 2e-3) and seeing if black spots reduce.  A bit of trial and error might be necessary.



If that doesn’t work can you send more scene info?  I’d like to see your falsecolor statement, your colorpict and mixpict material definitions and perhaps you could post your contour image in hdr format.



Best,

Andy





On 1/11/10 4:10 AM, "Per Haugaard" <perhaugaard at yahoo.dk> wrote:



Dear users,



I am mapping a falsecolor image on a working in a room but there is still some black parts left in the image.  I have FTINY as a guard against rounding errors but it does not remove everything.



As written i Axel J. tutorial I have build a ..cal file with a nonzero function:



nonzero(r,g,b) = if(max(r,max(g,b))-FTINY, 1, 0);

fc_u = -(Py-16.6)/12.8;

fc_v = (Px-0.2)/12.8;



Any idea of how to remove the remaining black spots in the image?



The images can be seen at:

http://perhaugaard.blogspot.com/2010/01/removing-black-parts-in-imagemapping-in.html 





Happy new year



/Per



 



 Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD TV <http://dk.yahoo.com/r/pat/lcd> ! 

_______________________________________________

Radiance-general mailing list

Radiance-general at radiance-online.org

http://www.radiance-online.org/mailman/listinfo/radiance-general


____________________________________________________________
Electronic mail messages entering and leaving Arup  business
systems are scanned for acceptability of content and viruses
 



      Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD TV! Se her http://dk.yahoo.com/r/pat/lcd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20100112/f7a3968c/attachment.html


More information about the Radiance-general mailing list