MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Point Sampling in Digital Image Processing?


Dear Greg, there currently is no function with the exact functionality you
describe. However, this is easily accomplished - here is an example.

(* this reads the image *)

{r, g, b} = ToChannels[ImageRead[ some file ...] ]

(* construct an InterpolatingFunction object, default value for n is 3 *)

interRed = ListInterpolation[ RawImageData[r], InterpolationOrder -> n ]

(* sample *)

interRed[ Random[Real,{1,256}], Random[Real,{1,256}] ]



That is all, good luck,

Mariusz





 

>>> Greg Humphreys<humper at gmail.com> 06/08/05 4:12 AM >>>
Hi -- I was wondering if the Digital Image Processing package has a
built-in function for point sampling an image at arbitrary coordinates
(e.g., non-integer coords), doing some sort of interpolation between
pixels.  I haven't found anything appropriate in the help.

Thanks!

    -Greg Humphreys




  • Prev by Date: Re: Sorting on multiple columns within a matrix
  • Next by Date: Solving a recursive system of 3x3 linear systems...
  • Previous by thread: Point Sampling in Digital Image Processing?
  • Next by thread: WolframNotebookIndexer