| Notices | Welcome to RetouchPRO . You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload images and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. | | Photo Restoration Repairing damaged photos | 
08-23-2005, 01:19 PM
| | Member | | Join Date: Aug 2005
Posts: 89
| | | transfer a shading hi all
well, this thread is somewhat related to the forest2city thread, but i didnt want to jam it even more with yet another issue ....
Say i have two images, A and B. (see attachment).
A is is a piece of a satellite pic, showing some shaded hillsides.
(from straight up, and from far)
B is a pic of another sat pic, a flat area, and has a much higher resolution
(like 10x better, but not closer)
Id like to assume for a second that B shows the the same area.
And id like to steal the **hillshading** from A and get it into B.
I tried to simply blend the two layers, but i wasnt too happy with that.
What other options, besides layer transparency, do i have to 'transfer' the shading-structure of A, (and anything else that can help to suggest elevation etc.) to B ?
If you think thats a lke a crazy idea and should just forget about it, im open for that as well, actually ...
Thanks
doonee | 
08-23-2005, 01:29 PM
|  | Moderator | | Join Date: Apr 2005 Location: somewhere over there
Posts: 6,513
| | | doonee,
small pics and B is very hard to see anything in.
however, regardless of that, you can 'set' your clone tool on A and then click on B and clone directly from A to B. or, you could do cut and pastes from A to B. or, you could put A on as a layer in B and simply erase out the parts of B that you want to have the parts of A show up.
Craig | 
08-23-2005, 01:36 PM
|  | Senior Member | | Join Date: Aug 2004 Location: Los Angeles, CA
Posts: 225
| | | If you just want the shading you could try a luminosity selection and then invert. You could then cut and paste the selection to the other photo. Of course there are also blend modes (overlay, darken, multiply...) | 
08-23-2005, 03:14 PM
| | Member | | Join Date: Aug 2005
Posts: 89
| | craig 
a more practical example in a single screenshot ....
A has been blown up to suite the resolution of B, and serves as a guide for pasting.
Top right corner is already covered wth B textures.
What is lost, however, is the hillshading of A in the overpasted area, which originally had a shading pattern very similar to the neighboring area in the upper left.
The idea:
Hopefully, the manipulated pic, beeing about 10x the size of the original will allow me to zoom in much closer in 3D visualization of that landscape, besides of opening possibilities for landscape reconstruction.
regards
d | 
08-23-2005, 03:33 PM
| | Member | | Join Date: Aug 2005
Posts: 89
| | @goose
thanks g, ill check this out ... 
d | 
08-23-2005, 03:50 PM
|  | Senior Member | | Join Date: Apr 2005 Location: Rockville, MD USA
Posts: 252
| | | I gave this a try use the blending modes that goose mentioned.
What I did was take your last example and duplicated the layer. Desaturated it to make it grayscale and then applied a levels adjustment to brighten it up a little.
Than I brought in image B and positioned it at the top left next to your example for comparison. I changed the layer blending mode to Hard Light and made it part of a clipping mask by ALT+clicking on the line between the layers. By making it part of a clipping group, image B will only appear where pixels below it are not transparent.
I applied a layer mask to the grayscale layer and using black, painted out the rivers. Since image B is part of a clipping group, the rivers were automatically cut away there, as well.
As the result was a little dark, I applied an adjustment layer to brighten it up a bit and get it close to image B's original color. I also made the adjustment layer part of the clipping group, so it only affected the visible pixels of image B.
The results are not too bad, I think. But, here's the thing... I don't think you'll have much luck using this method to increase the overall resolution of the image. The new shading on image B is still based on the resolution of the original image, which will still deteriorate in quality when the image is resampled.
--Racc | 
08-24-2005, 07:01 AM
| | Member | | Join Date: Aug 2005
Posts: 89
| | ok, i tried to follow what you guys were suggesting.
@ racc
youre right when noticing that the hi-resolution material looses a bit too much of its structure in this process, which perhaps makes trading structure for shading seem like not such a good deal ....
the objective would be to find a compromise and find out how to smuggle *some* hillshading in, taking away only a minimum of Bs resolution.
so i tried tweaking around, combining the things I know how to do with your ideas.
@goose ....
as for a luminosity selection, i didnt manage to do that.
(perhaps thats due to the portuguese keyboard here,
where the ~ char works kinda differently.)
isnt Ctrl+Alt+~ the command for luminosity selection ?
so ...
to start, i loaded the example, selected a bit of the already overpasted
area in the top left, copied it and placed it over the top right.
Ill call this B2, ok ?
(This gave me better referenece of what happens to the hi-res material
in the process.)
1
I selected the area where i intended to steal the shading.
I made a copy of that and desaturated it
I made a selection of its dark colours.
I used that selection to copy parts of B2 onto a new layer.
I darkened the new layer a bit and placed it above B2.
2
I selected the area where i intended to steal the shading.
I made a copy of that.
I tweaked the copy's colorbalance and contrast into an extreme.
I placed it under B2, which i made slightly transparent (92% op.)
The results are attached.
Maybe you guys have some ideas how i can refine these doings ...
greets
d
Last edited by doonee; 08-24-2005 at 08:06 AM.
| 
08-24-2005, 07:41 AM
|  | Senior Member | | Join Date: Apr 2005 Location: Rockville, MD USA
Posts: 252
| | | I'm not quite sure I follow what you did. Can you post a screen shot of your layers palette?
Also, it comes to mind that this might be a good place to use some of those DEM images. Part of the loss of the high res detail is because the different lightness values of individual trees in the canopy of the shading source image is adding unwanted noise to the higher res target image. Thus, the details are getting lost. That's in addition to the fact that the shading information is coming from a lower resolution image. The grayscale DEM images (assuming the POV is from overhead) would be a much better source for the shading information.
--Racc | 
08-24-2005, 08:31 AM
| | Member | | Join Date: Aug 2005
Posts: 89
| | racc ... 
screenshots of the layers are attached.
Its nothing complicated really, its only that im not doing too well yet in explaining what im doing.
As for the DEMs, im afraid that the ones which are available for this particular area do not have a resolution which helps. Generally, they fail to pick up some of the hills, which is how this all started. (Resoltuion of the the USGS DEM in this case is 1 heightsample/90m)
I found that a slight hint of a shading in the overlay, combined with that of the DEM used in the representation, gives some nice results. Although the POV
is orthographic overhead, usually all sat-overlays come with some kind of a shading of their own, and it was that i was trying to 'fake'.
Last edited by doonee; 08-24-2005 at 08:38 AM.
| 
08-24-2005, 09:19 AM
|  | Senior Member | | Join Date: Apr 2005 Location: Rockville, MD USA
Posts: 252
| | | I see what you did now. It's kind of similar to what I did. In the example I posted, the effect could probably be reduced by lowering the opacity of the grayscale layer, or even better... by not doing as much of a levels adjustment on the grayscale layer so it doesn't get as bright. That way much less noise would make it into B.
--Racc | 
08-24-2005, 04:59 PM
| | Member | | Join Date: Aug 2005
Posts: 89
| | racc
i guess its going to be a question of fine tuning.
the shading definitely does take something away from the texture.
a subtle hint of shading is most likely enough, because the elevation and shading of the DEM will add addtional depth and realism (hopefully).
anyhow, here is a quick model of A draped over the DEM.
the new B overlay, having 10x the detail, will hopefully enable me to 'come a bit closer'..
You can observe how, in A, the shading 'proper' of the overlay helps the picture as a whole, and i would not want to loose that.
i also tried to make a selection of the darker tones, fill that up with some black color and creat a shadow layer with that, but i did not like that very much. im sure that it can be done better ...
regards
doonee
Last edited by doonee; 08-24-2005 at 10:14 PM.
| 
08-24-2005, 05:04 PM
| | Member | | Join Date: Aug 2005
Posts: 89
| | | btw ...
any of you guys knows hwo to make a luminosity selection ?
is it the option that appaers under
>select>color range ?
if so, is it normal that i cant define 'fuzziness' for this option ?
regards
doonee | 
08-24-2005, 05:11 PM
|  | Senior Member | | Join Date: Aug 2004 Location: Los Angeles, CA
Posts: 225
| | | Donnee,
You can make a luminosity selection (on a mac) with apple option ~
You can then fune tune it (fuzziness) buy making the selection into a quick mask and writing curves or playing with levels. It takes a bit of getting used to but it's more precise that the color range fuzziness slider.
It's actually a really cool, really worthwhile option. | 
08-24-2005, 05:37 PM
| | Member | | Join Date: Aug 2005
Posts: 89
| | | @goose
i googled, and found ctrl+alt+~ for PC, but that creates and error here,
maybe due to the portuguese keyboard (~ in portuguese is a 2stroke char).
could you tell me the path to get there via the menu ?
regards
d | 
08-24-2005, 05:39 PM
|  | Senior Member | | Join Date: Aug 2004 Location: Los Angeles, CA
Posts: 225
| | | Doonee,
Unfortunately I think it's one of those commands that's not mapped to the menu. I'm almost positive though I could be wrong. |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -6. The time now is 03:30 AM. | |
|