Prev: textscan()
Next: Adding different sized matrix
From: Dalle Ali on 19 Jul 2010 06:57 hi guys, i don't really sure if my problem already being discussed or not, but on the search tools i didn't find anything so here it is: i have an .tif-image.. it belongs to uint16 and has width 1024 and height 516, so the grayvalues ranges from 0-65535... for some reason i want to manipulate each pixel and see what the new image will look like... for example the grayvalues within range 0-31000 will stay as it is, but the rest of the grayvalues will be manipulated with some equation... can somebody please gives me a heads up on how to do it or any suggestions? any kind of help will be much appreciated ;) cheers! Dalle
From: us on 19 Jul 2010 07:17 "Dalle Ali" <tirtayasaonly(a)yahoo.com> wrote in message <i21b29$94h$1(a)fred.mathworks.com>... > hi guys, > > i don't really sure if my problem already being discussed or not, but on the search tools i didn't find anything so here it is: > > i have an .tif-image.. it belongs to uint16 and has width 1024 and height 516, so the grayvalues ranges from 0-65535... for some reason i want to manipulate each pixel and see what the new image will look like... for example the grayvalues within range 0-31000 will stay as it is, but the rest of the grayvalues will be manipulated with some equation... > > can somebody please gives me a heads up on how to do it or any suggestions? any kind of help will be much appreciated ;) > > cheers! > Dalle a hint: help find; % eg, img=magic(4); ix=find(img>=13); img(ix)=nan; imagesc(img); us
From: Dalle Ali on 21 Jul 2010 04:17 "us " <us(a)neurol.unizh.ch> wrote in message <i21c82$n6o$1(a)fred.mathworks.com>... > "Dalle Ali" <tirtayasaonly(a)yahoo.com> wrote in message <i21b29$94h$1(a)fred.mathworks.com>... > > hi guys, > > > > i don't really sure if my problem already being discussed or not, but on the search tools i didn't find anything so here it is: > > > > i have an .tif-image.. it belongs to uint16 and has width 1024 and height 516, so the grayvalues ranges from 0-65535... for some reason i want to manipulate each pixel and see what the new image will look like... for example the grayvalues within range 0-31000 will stay as it is, but the rest of the grayvalues will be manipulated with some equation... > > > > can somebody please gives me a heads up on how to do it or any suggestions? any kind of help will be much appreciated ;) > > > > cheers! > > Dalle > > a hint: > > help find; > % eg, > img=magic(4); > ix=find(img>=13); > img(ix)=nan; > imagesc(img); > > us great! it works great! thx us ;)
|
Pages: 1 Prev: textscan() Next: Adding different sized matrix |