Documentation of 'Catalano.Imaging.Filters.ResizeBicubic' Java class
ResizeBicubic
Catalano.Imaging.Filters

Class ResizeBicubic

  • All Implemented Interfaces:
    IApply, IApplyInPlace


    public class ResizeBicubic
    extends java.lang.Object
    implements IApply, IApplyInPlace
    Resize image using bicubic interpolation algorithm. The class implements image resizing filter using bicubic interpolation algorithm. It uses bicubic kernel W(x) as described on http://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm (coefficient a is set to -0.5).
    • Constructor Summary

      Constructors 
      Constructor and Description
      ResizeBicubic(int newWidth, int newHeight)
      Initialize a new instance of the ResizeBicubic class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      FastBitmap apply(FastBitmap fastBitmap)
      Apply the filter
      void applyInPlace(FastBitmap fastBitmap)
      Apply filter to an image.
      int getNewHeight()
      Get Height of the new resized image.
      int getNewWidth()
      Get Width of the new resized image.
      void setNewHeight(int newHeight)
      Set Height of the new resized image.
      void setNewSize(int newWidth, int newHeight)
      Set Size of the new resized image.
      void setNewWidth(int newWidth)
      Set Width of the new resized image.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResizeBicubic

        public ResizeBicubic(int newWidth,
                             int newHeight)
        Initialize a new instance of the ResizeBicubic class.
        Parameters:
        newWidth - Width of the new resized image.
        newHeight - Height of the new resize image.
    • Method Detail

      • getNewWidth

        public int getNewWidth()
        Get Width of the new resized image.
        Returns:
        New width.
      • setNewWidth

        public void setNewWidth(int newWidth)
        Set Width of the new resized image.
        Parameters:
        newWidth - New width.
      • getNewHeight

        public int getNewHeight()
        Get Height of the new resized image.
        Returns:
        New height.
      • setNewHeight

        public void setNewHeight(int newHeight)
        Set Height of the new resized image.
        Parameters:
        newHeight - New height.
      • setNewSize

        public void setNewSize(int newWidth,
                               int newHeight)
        Set Size of the new resized image.
        Parameters:
        newWidth - Width of the new resized image.
        newHeight - Height of the new resized image.
      • apply

        public FastBitmap apply(FastBitmap fastBitmap)
        Description copied from interface: IApply
        Apply the filter
        Specified by:
        apply in interface IApply
        Parameters:
        fastBitmap - Image to be processed.
        Returns:
        A processed image.
      • applyInPlace

        public void applyInPlace(FastBitmap fastBitmap)
        Description copied from interface: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        fastBitmap - Image to be processed.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.