Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ContextCapture | Descartes | Pointools | Orbit
  • Product Communities
ContextCapture | Descartes | Pointools | Orbit
ContextCapture | Descartes | Pointools | Orbit Wiki Bentley Descartes - Raster Enhancement
    • Sign In
    • +Reality Modeling Wiki
    • +Bentley I/RAS B
    • +Bentley LumenRT
    • +Bentley Pointools
    • +ContextCapture -
    • -Descartes and ContextCapture Editor(deprecated product)
      • +Installation
      • +Licensing
      • +Point Clouds
      • -Raster Editing
        • Bentley Descartes - Convert line in raster image to vector is pixelated
        • Bentley Descartes - Miscellaneous Raster Functionalities
        • Bentley Descartes - Mosaic Rasters
        • Bentley Descartes - Raster Editing
        • Bentley Descartes - Raster Enhancement
        • Bentley Descartes - Raster Registration
        • Bentley Descartes - Raster Texturing
        • Bentley Descartes - Raster Transformation
        • Bentley Descartes - Raster Vectorization
        • Bentley Descartes – Merge Command Does Not Work When Set To Vector Only
        • Change color on part of a raster image using Bentley Descartes for MicroStation
        • Combine Image Tool in Descartes
        • Crop .sid file
        • Descartes Resize Canvas/ Irasb Shrink Border
        • Flood command different in Descartes than in I/Rasb
        • How to create a Color Mask and set multiple colors transparent
        • How to set multipe color transparent in Descartes
        • Need to combine two raster images and create a single raster image
        • Raster Images are being attached as Read-Only in Raster Manager
        • Register-Resample – Warp command data does not line up
        • Resize Canvas Error Message
        • Stamp command not rasterizing complete text data when selecting a word
        • The New Merge Tool in Descartes [CS]
        • Unable To Change Raster Image From Read-Only Mode In DWG File
        • Using Erase tool causes area to show background color where raster image area was erased
      • Raster Grid
      • +Raster Manager
      • +Reality Mesh and Terrains
      • Scalable Mesh Key-in list
      • +Scalable Terrain Models
      • +What's New
      • Working from home with Descartes and ContextCapture Editor
    • +Orbit 3DM
    • +RealityModeling Cloud Services

     
     Questions about this article, topic, or product? Click here. 

    Bentley Descartes - Raster Enhancement

    Raster Enhancement

    Bentley Descartes has many functionalities to enhance the global appearance of an image, principally by the use of image filters.   These filters are found in the Enhance Image tool box which contains the following tools:  Histogram, Contrast Stretch, Density Slicing, Blur, Sharpen, Smooth, Detail, Edge Enhance, Find Edges, and Color Table.

      

      

    Contrast Stretch

    The Contrast Stretch tool can be used to increase the contrast of an image. 

     The goal of the contrast stretch algorithm is to redistribute the range of values taken by the original image to a new, larger range. For example, in the graphic below, the values of the overexposed image are compressed towards the center of the available range. In this case Contrast Stretch can be used redistribute these values to produce an image with proper tone.

     

    Preview Pane

    The Preview pane allows you to have an immediate visual feedback when modifying a parameter determining the contrast stretch to apply. At the bottom of the preview pane there is a set of command that gives you the ability to explore the preview. From left to right, the commands are : Update View, Restore View, Zoom In, Zoom Out, Fit, Pan Preview,  and Update Preview.

    The Update View, Restore View and Update Preview commands can be used to control the application of the contrast stretch. Clicking the Update View command will apply the contrast stretch directly in the current view for the selected image. Note that the image on disk is not modified when applying the Update View command. Clicking the Restore View will command will remove the contrast stretch applied when clicking the Update View command. The Update Preview command do essentially the same thing is the first two commands, but for the image in the Preview pane.

    Histogram

    The histogram pane (entitled Luminance or Channel depending on the selected edit mode) is placed at the middle of the Contrast Stretch dialog and allows you to control manually the contrast stretch algorithm.

     

    Manual Contrast Stretch

    It is possible to control the contrast stretch of an image manually by specifying the shadows and hilites values. The shadows value determines which pixel's value in the original image will be mapped to the lowest possible pixel's value in the enhanced image (i.e. : resulting image after the contrast stretch has been applied). The hilites value has the same function as the shadows value but for the mapping to the highest possible value.

    For example, in the graphic below:

      • The Shadows setting of 56 means that all pixels in the original image whose value is equal to or less than 56 will be remapped to the pixel value of 0.

    • The Hilites value of 198 means that all pixels in the original image whose value is equal to or greater than 198 will be remapped to the pixel value 255.

    The results of applying this contrast stretch is a balanced distribution of pixel values from  indicie 0 which is the blackest black to 255 which is the whitest white.  This produces an image with a balence tone from the darkest shadows to the brightest highlights.

     

    Productivity Hint  : A good result can be obtained easily by moving the black triangle marker at the bottom of the histogram pane to left of the histogram bell shape and the white triangle marker to the right of the histogram bell shape.

      

    Automatic Contrast Stretch 

    The automatic contrast stretch is applied when clicking on the Auto button. The automatic contrast stretch is based on the percentage of pixels with the minimum values or maximum values that should be mapped to the lowest value or to the highest value respectively. Those percentages can be set in the Descartes Settings dialog which is display when clicking on the Settings... button.

     

     

    • Shadows: Sets the percentage of pixels with the lowest values to be mapped to the lowest value possible.
    • Hilites: Sets the percentage of pixels with the lowest values to be mapped to the lowest value possible.

     

     

     

     

     

     

     

     

     

     

    Productivity Hint : Use first the automatic contrast stretch for a core adjustment of the contrast stretch to apply. Then use the manual contrast stretch for tweaking the contrast stretch to the desired result.

    Density Slicing

    Density Slicing adds color to an image to increase the visual interpret ability of the map features. This global image enhancement highlights a range of luminance values and assigns it a different color for clarity or for further analysis. This technique can
    also be used to slice an image into a series of classifications based on variations of luminance values. For example, the areas of the image that fall between 0-117 may be hydrography, those that are between 118-145 may be prone to flooding, and pixels with values from 146-242 may be areas that have low probability of flooding.

     

    Blur

    The Blur filter is used to to blur an image. The blurring of an image can be used to remove details or noises and its analog to seeing an image through an out-of-focus lens.

    Bentley Descartes - Blur Dialog

      

    The alorythm Descartes uses is a 5 X 5 convolution matrix in the following form: 

    [  1  1  1  1  1  ]
    [  1  0  0  0  1  ]
    [  1  0  I   0  1  ]
    [  1  0  0  0  1  ]
    [  1  1  1  1  1  ]

    The matrix middle value (i.e. element 2,2) is computed using the following equation :

    I = 31 - pi_Intensity * 31 / 255

    So increasing the intensity will decrease the weight of the center pixel so as to give the neighbouring pixel greater importance.

      

    Sharpen

    The Sharpen filter is used to sharpen the image or, in other words, increase the differences of neighbor pixels' value.

     Bentley Descartes - Sharpen Settings Dialog

      

    The algorythm Descartes uses is a 3 X 3 convolution matrix om the following form: 

    [ -2  -2  -2 ]
    [ -2    I   -2 ]
    [ -2  -2  -2 ]

    The matrix middle value (i.e. element 1,1) is computed using the following equation :

    I = 31 - pi_Intensity * 31 / 255 + 17

    So increasing the intensity will decrease the weight of the center pixel so as to give the neighbouring pixel greater importance.

    Productivity Tip: When excessive sharpening is applied to an image, it may introduce noise or other undesired artifact in areas of graduated colour.

      

    Smooth

    The Smooth tool is used to smooth the image and making it less sharp. The smoothing operation is often used to remove high frequency noises from an image.

    Descartes is uses a 3 X 3 convolution matrix in the following form: 

    [ 1  1  1 ]
    [ 1  5  1 ]
    [ 1  1  1 ]

     

    Productivity Tip: You can increase the smoothing of the image by applying multiple times the smoothing operation on the same image.

      

    Detail

    The Detail function is used to increase the details of an image so that they can be visualized and interpreted more easily.

    The detail function, while being very simple to use, can give very good result. For example in the left image below, it is very hard to determine the characters on the hot air balloon. To increase the visibility of the characters the detailing filtering was applied three times. The characters are much more visible after the filter has been applied as shown by the right image below.

    Bentley Descartes - Detailing Example - Original Image

    Original image

                     

    Bentley Descartes - Detailing Example - Enhanced Image

    Detailed image

     

    Descartes is using a 3 X 3 convolution matrix. The matrix has the following form :

    [  0   -1    0 ]
    [ -1  10  -1 ]
    [  0   -1    0 ]

     

    Productivity Tip: You can increase the detailing of the image by applying multiple times the detailing operation on the same image.

      

    Edge Enhance / Find Edges

    The Edge Enhance filter increases the edges of an image by using a high pass filtering (i.e. : filtering out the low frequency information of the image).

    The Find Edge functionality is also doing a high pass filtering as the edge enhancement functionality but also darkened the pixels presents in homogeneous part (i.e. : patch of pixels with the same color) of the image. This allows the user to easily visualize the edges in the image.


    Descartes is using a 3 X 3 convolution matrix. The matrix for edge enhance functionality has the following form :

    [ -1 -1  -1 ]
    [ -1 10 -1 ]
    [ -1 -1  -1 ]

    The matrix for edge finder functionality has the following form :

    [ -1 -1 -1 ]
    [ -1  8 -1 ]
    [ -1 -1 -1 ]

     

    Productivity Tip : While as with the other raster enhancing functionalities it is possible to apply both edge related functionalities more than once it is recommended to do it only once. Doing it multiple times will just increase the small differences of pixels' value in homogeneous area, which is probably not what is wanted in the first place.

      

    Color Table Editing

     

    The Color Table tool allows you to modify any color of the selected image's color palette.

     

     

    • Open...: Open a color table file (i.e. : .tbl file)
    • Save As...: Save the current color table in a color table file.
    • Revert:  Undo any modification to the color table so as to reset to the active color table settings.
    • Attach: Apply the modified color table to the selected image and close the Color Table dialog.
    • Change: Change the value of a color table entry.
    • Cancel: Just close the Color Table dialog without applying the modifications to the selected image's color table, if any.

     

     

     

     

    • Descartes
    • Cylindrical ACS
    • Share
    • History
    • More
    • Cancel
    • Felix James Created by Bentley Colleague Felix James
    • When: Mon, Nov 2 2015 6:04 AM
    • Pascal Cloutier Last revision by Bentley Colleague Pascal Cloutier
    • When: Thu, Mar 19 2020 8:40 AM
    • Revisions: 2
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies