Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-4247

Image viewer: choosing pixel interpolation algorithm for scaled images

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: SUIT
    • Labels:

      Description

      Pixel values are defined at integer coordinate locations. This means that when an image is rendered in a scaled, rotates, or otherwise transformed coord. system, an interpolation algorithm should be used to provide a pixel value at any continuous coordinate.

      Currently, Firefly is using

      RenderingHints.KEY_INTERPOLATION = RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR,

      which means that when an image is rendered in a transformed coord. system, the pixel value of the nearest neighboring integer coordinate sample in the image is used.

      "As the image is scaled up, it will look correspondingly blocky. As the image is scaled down, the colors for source pixels will be either used unmodified, or skipped entirely in the output representation."

      Jon Thaler's team would like to be able to choose a different interpolation algorithm, depending on the situation.

      As an example see various resize algorithms in [thttp://stackoverflow.com/questions/4756268/how-to-resize-the-buffered-image-n-graphics-2d-in-java].

        Attachments

          Issue Links

            Activity

            No builds found.
            tatianag Tatiana Goldina created issue -
            tatianag Tatiana Goldina made changes -
            Field Original Value New Value
            Description Pixel values are defined at integer coordinate locations. This means that when an image is rendered in a scaled, rotates, or otherwise transformed coord. system, an interpolation algorithm should be used to provide a pixel value at any continuous coordinate.

            Currently, Firefly is using

            RenderingHints.KEY_INTERPOLATION = RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR,

            which means that when an image is rendered in a transformed coord. system, the pixel value of the nearest neighboring integer coordinate sample in the image is used.

            "As the image is scaled up, it will look correspondingly blocky. As the image is scaled down, the colors for source pixels will be either used unmodified, or skipped entirely in the output representation."

            Jon Thaler's team would like to be able to choose a different interpolation algorithm, depending on the situation.

            As an example see various resize algorithms in [this link].
            Pixel values are defined at integer coordinate locations. This means that when an image is rendered in a scaled, rotates, or otherwise transformed coord. system, an interpolation algorithm should be used to provide a pixel value at any continuous coordinate.

            Currently, Firefly is using

            RenderingHints.KEY_INTERPOLATION = RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR,

            which means that when an image is rendered in a transformed coord. system, the pixel value of the nearest neighboring integer coordinate sample in the image is used.

            "As the image is scaled up, it will look correspondingly blocky. As the image is scaled down, the colors for source pixels will be either used unmodified, or skipped entirely in the output representation."

            Jon Thaler's team would like to be able to choose a different interpolation algorithm, depending on the situation.

            As an example see various resize algorithms in [thttp://stackoverflow.com/questions/4756268/how-to-resize-the-buffered-image-n-graphics-2d-in-java].
            roby Trey Roby made changes -
            Rank Ranked lower
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-5450 [ 23278 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Story Points 4
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Rank Ranked lower
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-5450 [ 23278 ] DM-3596 [ 19693 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Labels FireflyCCB
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-3596 [ 19693 ] DM-10112 [ 31703 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-10112 [ 31703 ] DM-10570 [ 32500 ]
            tjenness Tim Jenness made changes -
            Remote Link This issue links to "Page (Confluence)" [ 33385 ]

              People

              Assignee:
              xiuqin Xiuqin Wu [X] (Inactive)
              Reporter:
              tatianag Tatiana Goldina
              Watchers:
              Tatiana Goldina
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins

                  No builds found.