First  |  Prev |  Next  |  Last
Pages: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
translate image to zero gray value background
Hi all, here is my code: clc;%close all;%clear all; I = imread('.\image\picture6a.jpg'); Igray = rgb2gray(I); % convert image to grayscale Imul=immultiply(Igray,1.0); % do some contrast balancing Inoise = imnoise(Imul,'salt & pepper',0.01); Imed = medfilt2(Inoise,[3 3]); % noise dis... 12 Aug 2010 23:32
vector computation
hi, i have 2 vectors input as follow: a = [0;1;1;0;1;0;0;0;0;1] b = [0;0;0;0;0;0;0;-1;0;0] and the output i am trying to generate is c = [0;1;1;1;1;1;1;0;0;1] whereby the logic is as follow: 1. if a is '1', c='1'. ('ON' mode) 2. if a is in 'ON' mode, c will always be '1'. 3. if b is '-1', c='0'. ('OFF'... 12 Aug 2010 01:43
vector computation
hi, i have 2 vectors input as follow: a = [0;1;1;0;1;0;0;0;0;1] b = [0;0;0;0;0;0;0;-1;0;0] and the output i am trying to generate is c = [0;1;1;1;1;1;1;0;0;1] whereby the logic is as follow: 1. if a is '1', c='1'. ('ON' mode) 2. if a is in 'ON' mode, c will always be '1'. 3. if b is '-1', c='0'. ('OFF'... 13 Aug 2010 02:46
The speed of the random number generator vs importing a text
Walter Roberson <roberson(a)hushmail.com> wrote in message <r9J8o.57334$Bh2.19415(a)newsfe04.iad>... John D'Errico wrote: PauliePorsche <Bhopale73(a)gmail.com> wrote in message <1653919816.96521.1281574388921.JavaMail.root(a)gallium.mathforum.org>... I have to run lengthy simulations which involves generati... 12 Aug 2010 15:52
background image brightness changed after displaying contour
Hi, I am using function 'contour' to display my image segmentation result on a grayscale CT image. Then I noticed that the background image looks brighter after the contour is displayed on the screen. This is my code: imagesc(imgslice);colormap(gray); %imageslice is a 2D double-format image hold on;contour(img... 12 Aug 2010 00:38
data read/import/load
I have a file (time.txt) of dates & times (looks like this): 01-Jan-09 722 02-Jan-09 723 03-Jan-09 723 04-Jan-09 723 05-Jan-09 723 06-Jan-09 723 07-Jan-09 723 08-Jan-09 723 09-Jan-09 723 10-Jan-09 723 11-Jan-09 723 12-Jan-09 723 13-Jan-09 723 14-Jan-09 723 15-Jan-09 722 16-Jan-09 722 17-Jan-09 722 1... 12 Aug 2010 03:52
Make a handle an incremental variable
I want to make a handle for axes a variable that may change with a counter. Callback for pushbutton... i=i+1 h=['handles.axes_' int2str(i)] axes(h) .... set(h) When I execute the above, I get: "Value must be a handle". Thanks in advance. Joe ... 12 Aug 2010 11:28
The speed of the random number generator vs importing a textfile?
Alright, thank you John! ... 11 Aug 2010 23:34
The speed of the random number generator vs importing a text file?
I have to run lengthy simulations which involves generating numbers randomly literally millions of times. I ended up running this simulation, figured out I'll need to tweak some algos, and re-run the simulation My question is it quicker to import a text file (from the previous simulation) and use the random numbers... 11 Aug 2010 21:20
multi-rate xPC models
I have a model which needs to run at a base rate of 10 kHz for data logging purposes, but every so often needs to perform a calculation which can take up to 7 ms to complete. Fortunately, once I start the calculation, I have plenty of time before I need to know an answer; however, this window of time available to do th... 11 Aug 2010 20:14
First  |  Prev |  Next  |  Last
Pages: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30