Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Point Sampling in Digital Image Processing?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57811] Re: Point Sampling in Digital Image Processing?
  • From: "Mariusz Jankowski" <mjankowski at usm.maine.edu>
  • Date: Thu, 9 Jun 2005 05:17:45 -0400 (EDT)
  • Organization: University of Southern Maine
  • References: <d869ab$cc8$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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