From: Gaurav Jain on 14 Apr 2010 18:03 Let's say I have an image; A = imread('peppers.png'); This gives me an uint8 RGB image. Now instead of using the pixel coordinate system to access the pixel A(1,3), I would like to set the pixel values using spatial coordinate system: A(2.9, 1.3 :) = [255 255 255]; This obviously gives me an error expecting a logical or an integer index. Can anybody help me how to convert a regular uint8 RGB image to a format where I am able to work in the spatial coordinate domain? Thank you. Gaurav
|
Pages: 1 Prev: Global Fit Next: Reading dynamic variable names in a loop |