How can I select a pixel by its spatial coordinates in Matlab? -


i want select pixel in image using floating-point numbers indexes. matlab documentation says possible using "spatial coordinates". however, doesn't provide clues on how it. how can select pixel image using floating-point indexes ("spatial coordinates")?

suppose have following code:

i = imread('pout.tif') get_pixel_by_spatial_coords(i, 1.5, 3.63) 

what's real name of function get_pixel_by_spatial_coords?

i think linked article on spatial coordinates describing coordinate systems used various image plotting routines.

your purpose, round number. depending on context, use 1 of:

i(round(1.5), round(3.63)) i(floor(1.5), floor(3.63)) i(ceil(1.5), ceil(3.63) ) 

Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -