In this DStretch tutorial I am going to show you one method of how to remove the wild and crazy colors sometimes produced by the color space enhancements of DStretch.
The method I will show you in this tutorial will use free software available for all major operating systems. You can download and use all of the software I use in this tutorial for free. I will be using DStretch and the Gimp, hopefully you already have DStretch installed on your computer. The Gimp can be downloaded for free from here http://www.gimp.org/downloads/ If you are using Windows or Mac OS you will need to click the "Show other downloads" link for your operating system.
If you already have Photoshop or another application that supports layers and masks you can use that instead since the techniques used in this tutorial are pretty basic and can be easily interpreted and applied in other image manipulation software programs.
Lets get started...!
We will start with 2 images, the first being the original, non DStretched image and the second will be the wild and crazy colored DStretched image.
Here is the original image and the DStretched image I will use for this tutorial.
Original Image
DStretched version with crazy colors
The final image will look something like this
The steps involved to create the final image are basically this:
1. Open the original and DStretch images "as layers" in your image application
2. Use a selection tool to outline your pictograph and save it as a "channel"
3. Invert the selection and also save it as a reversed channel
4. Create a Mask of the inverted pictograph channel
5. Erase the background of your pictograph Mask layer to allow the original image background to show thru.
6. Modify the colors of the pictograph Channel layer to get the best results
7. Save your modified images
Once you have your original image and your DStretched version ready you need to open them both "as layers" in Gimp
Select both images to open. You can hold down the <Cntrl> Key while clicking on each image
You should end up with 2 layers in Gimp. One is the original image and the second is the DStretched version. You want to make sure the DStretched version is the top layer, if it is below the original image layer than you can drag the layer above the original image layer
Now we will need to trace around the pictograph using the Free Select tool. This tool icon looks like a lasso rope, just select it by clicking the mouse on it
To trace around the pictograph just start clicking around the edges of the pictograph. You can be as precise or not as you choose. For this tutorial I am only going to trace a rough outline. Here is how it should look as you get started, once you go around the entire pictograph double click on the last point and it will automatically finish the trace for you
Here is how your finished selection should look
I recommend you add a bit of a feathering effect to the edges of the selection. This will help soften the overall look of the colors of the pictograph. With your selection still active choose the menu option Select > Feather and enter a value you want to use, I used 20.00 for this tutorial
The next steps are where some of the magic happens. First, save your work now! File > Save and it will prompt you for a filename and the extension will be .xcf which is fine, that is the default for a Gimp file just like Photshop uses .psd. This file format will allow you to save all of your layers, selections, etc so you can modify them later if you like. Once you save your photo as a jpg all the hard work you are doing now will be lost so save your .xcf file now!
With your selection still active you need to save it to a Channel. You will do that by clicking the menu option Select > Save to Channel
This will save the Channel and pop you over to a new window of saved Channels
Next you need to reverse or "invert" the selection to make the background the selection and not the pictograph. Do that by selecting the menu option Select > Invert
You will need to save this inverted selection to a new Channel just like the previous step. When you have saved both the normal and the inverted selection to Channels you should see both of them in the Channels window. The white area denotes the selection area. (I have renamed the channels to reflect picto and background selections, you can do the same)
Now you are ready to apply some magic....
On the inverted Channel, right click the mouse and choose "Channel to Selection". This will apply the background selection to the main image layer.
Next you need to select the layers window to get back to the actual photograph workspace. Select the tab circled in red shown here
You should see your two image layers now and the next step is to add a Layer Mask. Make the DStretched layer active by single clicking it and then on the menu select Layer > Mask > Add Layer Mask....
Accept the default value of White(full opacity) and click Add
You will see a new white box next the image on the layer itself. This is the new Mask. Make sure the Mask is selected by clicking the white box. A white outline indicates the currently selected item. If you click the image it will get a white outline instead, for now select the white Mask box instead.
Now pick your current color which needs to be black
Select the bucket tool
And then apply the black color with the bucket tool by clicking anywhere on the main image window (make sure the layer with the Mask is the highlighted layer)
Now you see magic!
Those are the basic steps. You can Save/Export the current image as is or you can fine tune it to look a little better. Some of things I do are change the opacity of the layer and change some of the Hue/Saturation effects on the pictograph layer.
To try those things, you need to go back to the Channel window and right click the picto outline Channel (not the background one we did already) and select Channel to Selection. This will make just the picto the selection and not the background like we had before. You can select/highlight the Mask layer to make it the active layer and also make sure you click the image to make it active, not the Mask box and change the opacity or from the Colors Menu select Hue-Saturation and play with the values.
This was a pretty long tutorial and you can watch the 6.5 minute video below instead. It covers everything here as well as showing you how to Save/Export your final image.
If you are familiar with how to use Layers and Masks this tutorial is probably all you need to tackle some of the tougher pictograph images. This tutorial used a simple, solid shaped pictograph which is pretty easy to enhance. An image with lots of pictographs or others with many open areas in the pictograph will require some crafty use of Masks and Layers to get good results.
Jon Harmon commented to me that this technique is an interpretation of the rock art and I agree. This technique may not be good for all pictographs and there is another method you can use to help isolate the colors using just DStretch alone. Jon has built into DStretch the concept of Masks and it can be a tricky beast to use. I will cover how to use the Hue Mask panel in another tutorial but for now you can watch the below video for a quick overview of how it works.
Links to all of my DStretch Tutorials are here:
DStretch Tutorials - Getting started
DStretch Tutorials - Modifying the Default Enhancements
DStretch Tutorials - Batch Mode
DStretch Tutorials - Removing the Wild and Crazy Colors
Please do not email me and ask me for locations of rock art, I will not reply to you.
Monday, November 19, 2012
Monday, November 5, 2012
DStretch Tutorials - Batch Mode
In this DStretch tutorial I want to show you how to quickly sample hundreds of photos with different colorspace enhancements. DStretch has a very efficient Batch mode that you can send several conversion jobs to and let it run in the background. I have found the Batch mode very useful to find pictographs that would have probably gone unnoticed in a regular photo.
This may seem like an odd option to use but for people who take hundreds of photographs out in the field of rocks and boulders that do not seem to have any apparent rock art on them it provides a mechanism to quickly look thru and "uncover" rock art that would probably go missed otherwise.
To use Batch mode in DStretch you need to have an "input" and an "output" folder for DStretch to process and save photos. I usually will create a folder named "in" for the input folder and place all of the original photos in there and for the output folders I will usually create folder names that correspond to the colorspace option I process them with.
Here is what I would typically setup
Next, after your folders are created you need to run the Batch mode in DStretch. You access this menu in "Plugins > DStretch > DStretch Batch..." menu
DStretch will prompt you for the input and output folders and then also the colorspace options before beginning the batch conversion process.
Here are the input, output and colorspace option dialog windows. You just need to tell DStretch where to get and put the files and which colorspace options you want to use and it will do the rest automatically while you go enjoy a cocktail.
You don't have to limit yourself to just one colorspace conversion at a time, DStretch can easily handle many Batch jobs at once. I typically will process 4-5 colorspace conversions at a time with hundreds of photos. In the main ImageJ window you can see the progress of the Batch mode in the lower left of the window. The video tutorial below will show you this while it is processing the images.
DStretch is very efficient at processing the photos and you can quickly look thru several hundred photos for the results of many different colorspace options
DStretch's Batch mode is a powerful tool if you need or want to process hundreds of photos quickly. It is one of my most used options in DStretch.
Links to all of my DStretch Tutorials are here:
DStretch Tutorials - Getting started
DStretch Tutorials - Modifying the Default Enhancements
DStretch Tutorials - Batch Mode
DStretch Tutorials - Removing the Wild and Crazy Colors
Please do not email me and ask me for locations of rock art, I will not reply to you.
This may seem like an odd option to use but for people who take hundreds of photographs out in the field of rocks and boulders that do not seem to have any apparent rock art on them it provides a mechanism to quickly look thru and "uncover" rock art that would probably go missed otherwise.
To use Batch mode in DStretch you need to have an "input" and an "output" folder for DStretch to process and save photos. I usually will create a folder named "in" for the input folder and place all of the original photos in there and for the output folders I will usually create folder names that correspond to the colorspace option I process them with.
Here is what I would typically setup
Next, after your folders are created you need to run the Batch mode in DStretch. You access this menu in "Plugins > DStretch > DStretch Batch..." menu
DStretch will prompt you for the input and output folders and then also the colorspace options before beginning the batch conversion process.
Here are the input, output and colorspace option dialog windows. You just need to tell DStretch where to get and put the files and which colorspace options you want to use and it will do the rest automatically while you go enjoy a cocktail.
You don't have to limit yourself to just one colorspace conversion at a time, DStretch can easily handle many Batch jobs at once. I typically will process 4-5 colorspace conversions at a time with hundreds of photos. In the main ImageJ window you can see the progress of the Batch mode in the lower left of the window. The video tutorial below will show you this while it is processing the images.
DStretch is very efficient at processing the photos and you can quickly look thru several hundred photos for the results of many different colorspace options
DStretch's Batch mode is a powerful tool if you need or want to process hundreds of photos quickly. It is one of my most used options in DStretch.
Links to all of my DStretch Tutorials are here:
DStretch Tutorials - Getting started
DStretch Tutorials - Modifying the Default Enhancements
DStretch Tutorials - Batch Mode
DStretch Tutorials - Removing the Wild and Crazy Colors
Please do not email me and ask me for locations of rock art, I will not reply to you.
Sunday, November 4, 2012
DStretch Tutorials - Modifying Default Enhancements
In this DStretch tutorial I want to show you how to expand on using the default colorspace enhancement options. In the first tutorial I showed you how to get started using DStretch and use the default colorspaces to get quick and fast results. I will not go into details about what the colorspace names mean or what they are actually doing, instead I will show you some techniques to change the default values to get more refined results.
The default colorspace enhancements are the yellow colored buttons with names like YRE, LRE, LDS, LAB, etc. When you first open an image in DStretch you can select one of these default enhancements and you will get an instant result. I usually will try CRGB first and then maybe LDS or YRE. Once you find a default colorspace that makes your image look reasonably good you can go into that colorspace specific mode and change some of the specific values to get a more refined result.
Here are the default colorspace options available when you first open an image in DStretch.
The "YXX" and "LXX" colorspace options have their own separate sub menus that allow you to adjust the individual colorspace values and that is what I will show you in this tutorial. For my example photo I will select the the "YRE" enhancement since it gives a good result with default values for this specific photo. The YRE enhancement is part of the "YXX" colorspace so I need to select the "YXX" colorspace button to get to the specific colorspace adjustment options. Here is where the "YXX" & the "LXX" specific option buttons are, you can click on the colorspace option you want to use and you do not need to select any default colorspace first, you can click the specific YXX or LXX option right after opening the image file.
Once you have selected the specific YXX or LXX menu you will see all of the colorspace options available to select as default enhancements. You can try all of them and see which one makes your pictograph image look best. On the right you will see three color value options that will allow you to selectively change the colorspace for those individual color channels. I do not have any specific rules about which ones to change to make your image look better or worse, each image will be different and you will need to try different values to see which ones makes your image look it's best. I typically will just start clicking on the different options and see what happens.
In this image you will see the three colorspace adjustment options available. You should try and make some changes to them and see how your image changes. You can always click the reset button to start over.
Watch this video to see how you can make changes to the default colorspace enhancements.
Links to all of my DStretch Tutorials are here:
DStretch Tutorials - Getting started
DStretch Tutorials - Modifying the Default Enhancements
DStretch Tutorials - Batch Mode
DStretch Tutorials - Removing the Wild and Crazy Colors
Please do not email me and ask me for locations of rock art, I will not reply to you.
The default colorspace enhancements are the yellow colored buttons with names like YRE, LRE, LDS, LAB, etc. When you first open an image in DStretch you can select one of these default enhancements and you will get an instant result. I usually will try CRGB first and then maybe LDS or YRE. Once you find a default colorspace that makes your image look reasonably good you can go into that colorspace specific mode and change some of the specific values to get a more refined result.
Here are the default colorspace options available when you first open an image in DStretch.
The "YXX" and "LXX" colorspace options have their own separate sub menus that allow you to adjust the individual colorspace values and that is what I will show you in this tutorial. For my example photo I will select the the "YRE" enhancement since it gives a good result with default values for this specific photo. The YRE enhancement is part of the "YXX" colorspace so I need to select the "YXX" colorspace button to get to the specific colorspace adjustment options. Here is where the "YXX" & the "LXX" specific option buttons are, you can click on the colorspace option you want to use and you do not need to select any default colorspace first, you can click the specific YXX or LXX option right after opening the image file.
Once you have selected the specific YXX or LXX menu you will see all of the colorspace options available to select as default enhancements. You can try all of them and see which one makes your pictograph image look best. On the right you will see three color value options that will allow you to selectively change the colorspace for those individual color channels. I do not have any specific rules about which ones to change to make your image look better or worse, each image will be different and you will need to try different values to see which ones makes your image look it's best. I typically will just start clicking on the different options and see what happens.
In this image you will see the three colorspace adjustment options available. You should try and make some changes to them and see how your image changes. You can always click the reset button to start over.
Watch this video to see how you can make changes to the default colorspace enhancements.
Links to all of my DStretch Tutorials are here:
DStretch Tutorials - Getting started
DStretch Tutorials - Modifying the Default Enhancements
DStretch Tutorials - Batch Mode
DStretch Tutorials - Removing the Wild and Crazy Colors
Please do not email me and ask me for locations of rock art, I will not reply to you.
Subscribe to:
Posts (Atom)