Uses of Class
cloud.opencode.base.image.core.Raster
Packages that use Raster
Package
Description
Reusable output buffer utilities for image operators.
-
Uses of Raster in cloud.opencode.base.image
Methods in cloud.opencode.base.image that return RasterModifier and TypeMethodDescriptionstatic RasterOpenImage.createBlankRaster(int width, int height) Create a blankRaster(transparent RGBA_8).static RasterOpenImage.createBlankRaster(int width, int height, int argb) Create a blankRasterfilled with the given ARGB color.static RasterImageStitch.gridRaster(List<Raster> rasters, int columns) StitchRasters in a grid layout with the specified column count.static RasterImageStitch.horizontal(List<Raster> rasters) StitchRasters horizontally; height is the maximum, smaller rasters are vertically centered.static RasterImageStitch.horizontal(List<Raster> rasters, int gap, int bgArgb) StitchRasters horizontally with gap and background ARGB color.static RasterOpenImage.readRaster(byte[] bytes) Decode aRasterfrom byte content, auto-detecting the format from magic bytes (PNG / JPEG / WebP / BMP / GIF).static RasterOpenImage.readRaster(InputStream in) Read aRasterfrom anInputStream.static RasterOpenImage.readRaster(Path path) Read aRasterfrom a path.Image.toRaster()Get the underlyingRaster.static RasterStitchRasters vertically; width is the maximum, smaller rasters are horizontally centered.static RasterStitchRasters vertically with gap and background ARGB color.Methods in cloud.opencode.base.image with parameters of type RasterModifier and TypeMethodDescriptionstatic ImageImage.fromRaster(Raster raster) static ImageImage.fromRaster(Raster raster, ImageFormat format) static byte[]OpenImage.toBytes(Raster raster, ImageFormat format) Encode aRasterto a fresh byte array.static voidOpenImage.write(Raster raster, OutputStream out, ImageFormat format) Encode aRasterto an output stream in the given format.static voidEncode aRasterand write it to a path; the target format is inferred from the file extension.static voidOpenImage.write(Raster raster, Path path, ImageFormat format) Encode aRasterand write it to a path with the given format.Method parameters in cloud.opencode.base.image with type arguments of type RasterModifier and TypeMethodDescriptionstatic RasterImageStitch.gridRaster(List<Raster> rasters, int columns) StitchRasters in a grid layout with the specified column count.static RasterImageStitch.horizontal(List<Raster> rasters) StitchRasters horizontally; height is the maximum, smaller rasters are vertically centered.static RasterImageStitch.horizontal(List<Raster> rasters, int gap, int bgArgb) StitchRasters horizontally with gap and background ARGB color.static RasterStitchRasters vertically; width is the maximum, smaller rasters are horizontally centered.static RasterStitchRasters vertically with gap and background ARGB color.Constructors in cloud.opencode.base.image with parameters of type Raster -
Uses of Raster in cloud.opencode.base.image.analysis
Methods in cloud.opencode.base.image.analysis with parameters of type RasterModifier and TypeMethodDescriptionstatic ConnectedComponentsOp.ResultAnalyze connected components in aRasterusing 8-connectivity.static ConnectedComponentsOp.ResultConnectedComponentsOp.analyze(Raster raster, ConnectedComponentsOp.Connectivity connectivity) Analyze connected components in aRasterwith specified connectivity.static List<ContourFinderOp.Contour> Find all contours in a binaryRaster.static TemplateMatchOp.MatchResultFind the best match of a templateRasterin the source raster using NCC.static List<TemplateMatchOp.MatchResult> Find all matches of a templateRasterin the source raster above a threshold. -
Uses of Raster in cloud.opencode.base.image.buffer
Methods in cloud.opencode.base.image.buffer that return RasterModifier and TypeMethodDescriptionPingPongBufferPool.acquireRasterA(int w, int h, PixelFormat format) Acquire raster slot A, reallocating if required.PingPongBufferPool.acquireRasterB(int w, int h, PixelFormat format) Acquire raster slot B, reallocating if required.static RasterImageBuffers.ensure(Raster dst, int w, int h, PixelFormat expectedFormat) Returnsdstwhen it matches (w, h, expectedFormat); otherwise allocates a freshly zero-filledRaster.static RasterImageBuffers.require(Raster dst, int w, int h, PixelFormat expectedFormat) Throwing variant forRaster— fails fast when caller passed a mismatched raster, intended for performance-critical paths that must not silently allocate.Methods in cloud.opencode.base.image.buffer with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterImageBuffers.ensure(Raster dst, int w, int h, PixelFormat expectedFormat) Returnsdstwhen it matches (w, h, expectedFormat); otherwise allocates a freshly zero-filledRaster.static RasterImageBuffers.require(Raster dst, int w, int h, PixelFormat expectedFormat) Throwing variant forRaster— fails fast when caller passed a mismatched raster, intended for performance-critical paths that must not silently allocate. -
Uses of Raster in cloud.opencode.base.image.color
Methods in cloud.opencode.base.image.color that return RasterModifier and TypeMethodDescriptionstatic RasterApply gamma correction to aRaster.static RasterAdjust the saturation of aRaster.static RasterApply Gray World white balance correction to aRaster.static RasterBrightnessContrastOp.brightness(Raster raster, double factor) Adjust brightness of aRasterby multiplying each RGB component by the given factor.static RasterAdjust contrast of aRasterby scaling RGB components around the midpoint 128.static RasterColorSpaceOp.fromArgb(int[] argb, int width, int height) static RasterApply color inversion filter to aRaster.static RasterApply sepia (nostalgic brown tone) filter to aRaster.Methods in cloud.opencode.base.image.color with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterApply gamma correction to aRaster.static RasterAdjust the saturation of aRaster.static RasterApply Gray World white balance correction to aRaster.static RasterBrightnessContrastOp.brightness(Raster raster, double factor) Adjust brightness of aRasterby multiplying each RGB component by the given factor.static RasterAdjust contrast of aRasterby scaling RGB components around the midpoint 128.static intColorExtractor.dominantColor(Raster raster) Extract the single most dominant color from aRaster.ColorExtractor.dominantColors(Raster raster, int count) Extract the dominant colors from aRasterusing K-Means clustering.static RasterApply color inversion filter to aRaster.static RasterApply sepia (nostalgic brown tone) filter to aRaster.static int[]ReadRasterpixels as a row-major packed ARGBint[].static float[][]Convert aRasterto HSL color space.static float[][]Convert aRasterto HSV color space.static float[][]Convert aRasterto CIELAB color space (D65, sRGB).static float[][]Convert aRasterto YCbCr color space (ITU-R BT.601). -
Uses of Raster in cloud.opencode.base.image.compare
Methods in cloud.opencode.base.image.compare that return RasterModifier and TypeMethodDescriptionImageCompare.RasterDiffResult.diffImage()Returns the value of thediffImagerecord component.Methods in cloud.opencode.base.image.compare with parameters of type RasterModifier and TypeMethodDescriptionstatic longCompute aHash for aRaster.static longCompute dHash for aRaster.Compute pixel-level diff between two equally-sizedRasters.static doubleCompute MSE between two equally-sizedRasters across RGB channels.static longCompute pHash for aRaster.static doubleCompute PSNR between two equally-sizedRasters.static doubleCompute SSIM between two equally-sizedRasters.Constructors in cloud.opencode.base.image.compare with parameters of type RasterModifierConstructorDescriptionRasterDiffResult(Raster diffImage, double diffPercent) Creates an instance of aRasterDiffResultrecord class. -
Uses of Raster in cloud.opencode.base.image.core
Methods in cloud.opencode.base.image.core that return RasterModifier and TypeMethodDescriptionRaster.copy()Returns a deep copy with tight stride, fresh buffer, only the visible sub-region.static RasterRaster.create(int width, int height, PixelFormat format) Allocates a fresh Raster of the given dimensions with tight stride (zero-filled).static RasterRaster.fromBmp(DecodedBmp bmp) Builds anRGB_8Raster sharing the BMP's RGB buffer.static RasterRaster.fromGif(DecodedGif gif) Builds anRGBA_8Raster sharing the GIF frame's RGBA buffer.static RasterRaster.fromJpeg(DecodedJpeg jpeg) Builds anRGB_8Raster sharing the JPEG's RGB buffer.static RasterRaster.fromPng(DecodedPng png) Builds a Raster from a decoded PNG, choosingRGBA_8when the source has alpha andRGB_8otherwise.static RasterRaster.fromWebp(DecodedWebp webp) Builds a Raster sharing the WebP's pixel buffer;RGBA_8when the WebP carries alpha, otherwiseRGB_8.Raster.subView(int x, int y, int w, int h) Returns a sub-view sharing this raster's underlying buffer.static RasterRaster.wrap(byte[] data, int width, int height, PixelFormat format) Wraps existing pixel data (no copy) with tight stride. -
Uses of Raster in cloud.opencode.base.image.draw
Methods in cloud.opencode.base.image.draw with parameters of type RasterModifier and TypeMethodDescriptionstatic voidstatic voidDraw a circle on aRaster, outline or filled.static voidDrawOp.ellipse(Raster raster, int cx, int cy, int rx, int ry, int argb, int thickness, boolean fill) Draw an ellipse on aRaster, outline or filled.static voidstatic voidDraw a polygon on aRaster, outline or filled.static voidDraw a rectangle on aRaster, outline or filled. -
Uses of Raster in cloud.opencode.base.image.edge
Methods in cloud.opencode.base.image.edge that return RasterModifier and TypeMethodDescriptionstatic RasterApply Canny edge detection to aRasterwith default thresholds (50, 150) and sigma=1.4.static RasterApply Canny edge detection to aRasterwith specified thresholds and sigma=1.4.static RasterApply Laplacian edge detection to aRaster.static RasterCompute Sobel gradient magnitude on aRaster.static RasterCompute directional Sobel gradient on aRaster.Methods in cloud.opencode.base.image.edge with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterApply Canny edge detection to aRasterwith default thresholds (50, 150) and sigma=1.4.static RasterApply Canny edge detection to aRasterwith specified thresholds and sigma=1.4.static RasterApply Laplacian edge detection to aRaster.static RasterCompute Sobel gradient magnitude on aRaster.static RasterCompute directional Sobel gradient on aRaster. -
Uses of Raster in cloud.opencode.base.image.exif
Methods in cloud.opencode.base.image.exif that return RasterModifier and TypeMethodDescriptionstatic RasterExifOp.autoOrient(Raster raster, int orientation) Auto-orient aRasterbased on EXIF orientation value.Methods in cloud.opencode.base.image.exif with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterExifOp.autoOrient(Raster raster, int orientation) Auto-orient aRasterbased on EXIF orientation value. -
Uses of Raster in cloud.opencode.base.image.feature
Methods in cloud.opencode.base.image.feature that return RasterModifier and TypeMethodDescriptionstatic RasterHarrisCornerOp.responseImage(Raster raster, double k) Compute Harris corner response for aRasterand pack the normalized result into aGRAY_8response image.Methods in cloud.opencode.base.image.feature with parameters of type RasterModifier and TypeMethodDescriptionstatic List<double[]> Detect Harris corners on aRasterwith explicit parameters.static List<double[]> Detect Harris corners on aRasterwith an automatic threshold, returning at mostmaxCorners.static List<double[]> Detect Shi-Tomasi corners on aRasterwith default parameters (maxCorners=100, qualityLevel=0.01).static List<double[]> Detect Shi-Tomasi corners on aRasterwith custom parameters.static RasterHarrisCornerOp.responseImage(Raster raster, double k) Compute Harris corner response for aRasterand pack the normalized result into aGRAY_8response image. -
Uses of Raster in cloud.opencode.base.image.filter
Methods in cloud.opencode.base.image.filter that return RasterModifier and TypeMethodDescriptionstatic RasterApply bilateral filter to aRasterwith default parameters (kernelSize=9, sigmaColor=75, sigmaSpace=75).static RasterApply bilateral filter to aRasterwith custom parameters.static RasterBilateralFilterOp.apply(Raster raster, int kernelSize, double sigmaColor, double sigmaSpace, Raster dst) Apply bilateral filter to aRasterwith optional output buffer.static RasterApply box blur to aRasterusing integral images.static RasterApply box blur to aRasterwith optional caller-provided output buffer.static RasterApply Gaussian blur to aRasterwith automatic kernel size computed fromsigma(radius =ceil(3 * sigma)).static RasterApply Gaussian blur to aRasterwith explicit kernel size.static RasterApply median filter to aRaster.static RasterApply median filter to aRasterwith optional caller-provided output buffer.static RasterApply unsharp mask sharpening to aRasterwith default parameters (amount=1.0, sigma=1.0).static RasterApply unsharp mask sharpening to aRasterwith custom amount.static RasterApply unsharp mask sharpening to aRasterwith custom amount and sigma.Methods in cloud.opencode.base.image.filter with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterApply bilateral filter to aRasterwith default parameters (kernelSize=9, sigmaColor=75, sigmaSpace=75).static RasterApply bilateral filter to aRasterwith custom parameters.static RasterBilateralFilterOp.apply(Raster raster, int kernelSize, double sigmaColor, double sigmaSpace, Raster dst) Apply bilateral filter to aRasterwith optional output buffer.static RasterApply box blur to aRasterusing integral images.static RasterApply box blur to aRasterwith optional caller-provided output buffer.static RasterApply Gaussian blur to aRasterwith automatic kernel size computed fromsigma(radius =ceil(3 * sigma)).static RasterApply Gaussian blur to aRasterwith explicit kernel size.static RasterApply median filter to aRaster.static RasterApply median filter to aRasterwith optional caller-provided output buffer.static RasterApply unsharp mask sharpening to aRasterwith default parameters (amount=1.0, sigma=1.0).static RasterApply unsharp mask sharpening to aRasterwith custom amount.static RasterApply unsharp mask sharpening to aRasterwith custom amount and sigma. -
Uses of Raster in cloud.opencode.base.image.histogram
Methods in cloud.opencode.base.image.histogram that return RasterModifier and TypeMethodDescriptionstatic RasterApply CLAHE with default parameters (clipLimit=2.0, tileGridSize=8) to aRaster.static RasterApply CLAHE with specified parameters to aRaster.static RasterApply CLAHE with specified parameters and optional output buffer to aRaster.static RasterApply CLAHE with default parameters and optional output buffer.static RasterApply grayscale histogram equalization to aRaster.static RasterApply grayscale histogram equalization to aRasterwith optional output buffer.Methods in cloud.opencode.base.image.histogram with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterApply CLAHE with default parameters (clipLimit=2.0, tileGridSize=8) to aRaster.static RasterApply CLAHE with specified parameters to aRaster.static RasterApply CLAHE with specified parameters and optional output buffer to aRaster.static RasterApply CLAHE with default parameters and optional output buffer.static RasterApply grayscale histogram equalization to aRaster.static RasterApply grayscale histogram equalization to aRasterwith optional output buffer.static HistogramOp.Histogram[]Compute per-channel (R, G, B) histograms of aRaster.static HistogramOp.HistogramHistogramOp.computeGray(Raster raster) Compute the grayscale histogram of aRaster. -
Uses of Raster in cloud.opencode.base.image.morphology
Methods in cloud.opencode.base.image.morphology that return RasterModifier and TypeMethodDescriptionstatic RasterMorphologyOp.blackHat(Raster raster, StructuringElement element) Compute the black-hat transform (closing - original) on aRaster.static RasterMorphologyOp.close(Raster raster, StructuringElement element) Close aRaster(dilate then erode).static RasterMorphologyOp.dilate(Raster raster, StructuringElement element) Dilate aRasterusing the given structuring element.static RasterMorphologyOp.erode(Raster raster, StructuringElement element) Erode aRasterusing the given structuring element.static RasterMorphologyOp.gradient(Raster raster, StructuringElement element) Compute the morphological gradient (dilate - erode) on aRaster.static RasterMorphologyOp.open(Raster raster, StructuringElement element) Open aRaster(erode then dilate).static RasterMorphologyOp.topHat(Raster raster, StructuringElement element) Compute the top-hat transform (original - opening) on aRaster.Methods in cloud.opencode.base.image.morphology with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterMorphologyOp.blackHat(Raster raster, StructuringElement element) Compute the black-hat transform (closing - original) on aRaster.static RasterMorphologyOp.close(Raster raster, StructuringElement element) Close aRaster(dilate then erode).static RasterMorphologyOp.dilate(Raster raster, StructuringElement element) Dilate aRasterusing the given structuring element.static RasterMorphologyOp.erode(Raster raster, StructuringElement element) Erode aRasterusing the given structuring element.static RasterMorphologyOp.gradient(Raster raster, StructuringElement element) Compute the morphological gradient (dilate - erode) on aRaster.static RasterMorphologyOp.open(Raster raster, StructuringElement element) Open aRaster(erode then dilate).static RasterMorphologyOp.topHat(Raster raster, StructuringElement element) Compute the top-hat transform (original - opening) on aRaster. -
Uses of Raster in cloud.opencode.base.image.raster
Methods in cloud.opencode.base.image.raster that return RasterModifier and TypeMethodDescriptionRasterPipeline.toRaster()Returns the current raster held by this pipeline.Methods in cloud.opencode.base.image.raster with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterPipelineCreates a new pipeline wrapping the given raster. -
Uses of Raster in cloud.opencode.base.image.responsive
Methods in cloud.opencode.base.image.responsive that return types with arguments of type RasterMethods in cloud.opencode.base.image.responsive with parameters of type Raster -
Uses of Raster in cloud.opencode.base.image.security
Methods in cloud.opencode.base.image.security that return RasterModifier and TypeMethodDescriptionApply operation to raster 应用操作到 rasterApply operation to raster 应用操作到 rasterSafeImageService.process(Raster raster, ImageOperation operation) Process raster with operation under timeout / concurrency controls.SafeImageService.read(byte[] bytes) Read raster safely from bytes 从字节数组安全读取 rasterRead raster safely from path 从路径安全读取 rasterMethods in cloud.opencode.base.image.security with parameters of type RasterModifier and TypeMethodDescriptionApply operation to raster 应用操作到 rasterApply operation to raster 应用操作到 rasterSafeImageService.process(Raster raster, ImageOperation operation) Process raster with operation under timeout / concurrency controls.voidSafeImageService.save(Raster raster, Path path, ImageFormat format, Path baseDir) Save raster safely with explicit format 以指定格式安全保存 rastervoidSave raster safely 安全保存 raster -
Uses of Raster in cloud.opencode.base.image.threshold
Methods in cloud.opencode.base.image.threshold that return RasterModifier and TypeMethodDescriptionstatic RasterApply adaptive threshold to aRasterwith MEAN method (convenience).static RasterAdaptiveThresholdOp.apply(Raster raster, int blockSize, double c, AdaptiveThresholdOp.Method method) Apply adaptive threshold to aRasterwith the specified method.static RasterAdaptiveThresholdOp.apply(Raster raster, int blockSize, double c, AdaptiveThresholdOp.Method method, Raster dst) Apply adaptive threshold to aRasterwith the specified method and optional caller-provided output buffer.static RasterApply Otsu's automatic thresholding to aRaster.static RasterApply Otsu's automatic thresholding to aRasterwith optional caller-provided output buffer.static RasterApply BINARY mode threshold to aRaster(convenience method).static RasterThresholdOp.apply(Raster raster, int threshold, ThresholdOp.Mode mode) Apply fixed threshold to aRasterwith the specified mode.Methods in cloud.opencode.base.image.threshold with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterApply adaptive threshold to aRasterwith MEAN method (convenience).static RasterAdaptiveThresholdOp.apply(Raster raster, int blockSize, double c, AdaptiveThresholdOp.Method method) Apply adaptive threshold to aRasterwith the specified method.static RasterAdaptiveThresholdOp.apply(Raster raster, int blockSize, double c, AdaptiveThresholdOp.Method method, Raster dst) Apply adaptive threshold to aRasterwith the specified method and optional caller-provided output buffer.static RasterApply Otsu's automatic thresholding to aRaster.static RasterApply Otsu's automatic thresholding to aRasterwith optional caller-provided output buffer.static RasterApply BINARY mode threshold to aRaster(convenience method).static RasterThresholdOp.apply(Raster raster, int threshold, ThresholdOp.Mode mode) Apply fixed threshold to aRasterwith the specified mode. -
Uses of Raster in cloud.opencode.base.image.thumbnail
Methods in cloud.opencode.base.image.thumbnail that return RasterModifier and TypeMethodDescriptionThumbnailBuilder.build()Build the thumbnail.ThumbnailBuilder.buildRaster(Raster sourceRaster) Build a thumbnail from the suppliedRaster(overrides any previously configured source).Methods in cloud.opencode.base.image.thumbnail with parameters of type RasterModifier and TypeMethodDescriptionThumbnailBuilder.buildRaster(Raster sourceRaster) Build a thumbnail from the suppliedRaster(overrides any previously configured source).static ThumbnailBuilderFactory: fromRaster.Constructors in cloud.opencode.base.image.thumbnail with parameters of type Raster -
Uses of Raster in cloud.opencode.base.image.transform
Methods in cloud.opencode.base.image.transform that return RasterModifier and TypeMethodDescriptionstatic RasterApply an affine transform with a 6-parameter matrix to aRaster.static RasterAffineTransformOp.apply(Raster raster, double[] srcPoints, double[] dstPoints, int outputWidth, int outputHeight) Apply an affine transform to aRasterfrom 3 source/destination point pairs.static RasterApply an affine transform with optional output buffer to aRaster.static RasterPerspectiveTransformOp.apply(Raster raster, double[] srcPoints, double[] dstPoints, int outputWidth, int outputHeight) Apply a perspective transform to aRasterfrom 4 source/destination point pairs.Methods in cloud.opencode.base.image.transform with parameters of type RasterModifier and TypeMethodDescriptionstatic RasterApply an affine transform with a 6-parameter matrix to aRaster.static RasterAffineTransformOp.apply(Raster raster, double[] srcPoints, double[] dstPoints, int outputWidth, int outputHeight) Apply an affine transform to aRasterfrom 3 source/destination point pairs.static RasterApply an affine transform with optional output buffer to aRaster.static RasterPerspectiveTransformOp.apply(Raster raster, double[] srcPoints, double[] dstPoints, int outputWidth, int outputHeight) Apply a perspective transform to aRasterfrom 4 source/destination point pairs. -
Uses of Raster in cloud.opencode.base.image.watermark
Methods in cloud.opencode.base.image.watermark that return RasterModifier and TypeMethodDescriptionImageWatermark.applyTiled(Raster raster, Raster watermarkRaster, int spacingX, int spacingY) TextWatermark.applyTiled(Raster raster, Bitmap textBitmap, int spacingX, int spacingY) Methods in cloud.opencode.base.image.watermark with parameters of type RasterModifier and TypeMethodDescriptionImageWatermark.applyTiled(Raster raster, Raster watermarkRaster, int spacingX, int spacingY) TextWatermark.applyTiled(Raster raster, Bitmap textBitmap, int spacingX, int spacingY)