Answered

change Black and White - Image to Black & Red Image

You need to define the colormap: imshow(BW,[0 0 0; 1 0 0]) % 0's are black and 1's are red

change Black and White - Image to Black & Red Image

You need to define the colormap: imshow(BW,[0 0 0; 1 0 0]) % 0's are black and 1's are red

circa 10 anni ago | 0

Answered

ellipses on image

Use <http://www.mathworks.com/help/toolbox/pde/ug/pdeellip.html pdeellip> (if you have the PDE toolbox): pdeellip(xc,yc,a,b,...

ellipses on image

Use <http://www.mathworks.com/help/toolbox/pde/ug/pdeellip.html pdeellip> (if you have the PDE toolbox): pdeellip(xc,yc,a,b,...

circa 10 anni ago | 0

Answered

MATLAB Answers Wish-list #2 (and bug reports)

How about a link on the left hand navigation for FAQ and posts like Walter's on tags?

MATLAB Answers Wish-list #2 (and bug reports)

How about a link on the left hand navigation for FAQ and posts like Walter's on tags?

circa 10 anni ago | 1

Answered

add picture in matlab

do you have the image processing toolbox? if so: I = imread('imagename.extension'); The result will be a 2- or 3-D matri...

add picture in matlab

do you have the image processing toolbox? if so: I = imread('imagename.extension'); The result will be a 2- or 3-D matri...

circa 10 anni ago | 0

| accepted

Answered

cropping manually and automatic using matlab

*Manual method:* scenenum = input('Please enter the number of scenes you wish to crop: ') for m = 1:scenenum mask...

cropping manually and automatic using matlab

*Manual method:* scenenum = input('Please enter the number of scenes you wish to crop: ') for m = 1:scenenum mask...

circa 10 anni ago | 0

Question

Creating vector of all numbers in a cell array.

This is probably an easy solution, but I cannot figure it out. I have an |m x m cell array| where each cell contains a |1 x ...

circa 10 anni ago | 3 answers | 0

Answered

Problem trying to access labeled portion of images (updated 7/5)

I switched to |*.**| over *|immultiply()|* and I haven't run into the error message again. This may not mean I am out of the wo...

Problem trying to access labeled portion of images (updated 7/5)

I switched to |*.**| over *|immultiply()|* and I haven't run into the error message again. This may not mean I am out of the wo...

circa 10 anni ago | 0

Question

Problem trying to access labeled portion of images (updated 7/5)

*UPDATE:* <http://dl.dropbox.com/u/56764179/data_dump.mat data_dump.mat> unique(diff(unique(endpts_labeled))) ans = ...

circa 10 anni ago | 3 answers | 0

Answered

for loop doesn't seem to loop

You're not specifying the row of A that you are writing the data to, so each loop it just places [PVtech(i,:) WTtech(i,:)] into ...

for loop doesn't seem to loop

You're not specifying the row of A that you are writing the data to, so each loop it just places [PVtech(i,:) WTtech(i,:)] into ...

circa 10 anni ago | 0

| accepted

Answered

How can I deblur an image given the original PSF?

<http://www.mathworks.com/help/toolbox/images/ref/deconvlucy.html doc deconvlucy> the documentation mentions similar functions....

How can I deblur an image given the original PSF?

<http://www.mathworks.com/help/toolbox/images/ref/deconvlucy.html doc deconvlucy> the documentation mentions similar functions....

circa 10 anni ago | 0

| accepted

Answered

Delete unique element in column

Based off of Jan's answer: A = [1 2; 1 3; 3 4]; [B, I, J] = unique(A(:,1),'last'); NewMatrix = A(I,:);

Delete unique element in column

Based off of Jan's answer: A = [1 2; 1 3; 3 4]; [B, I, J] = unique(A(:,1),'last'); NewMatrix = A(I,:);

circa 10 anni ago | 0

Answered

How to implement 'Medfilt1' function into Simulink

If you have the Video and Image Processing Blockset, use the 2D median filter and change the "Neighborhood size" to 1xN or Nx1 (...

How to implement 'Medfilt1' function into Simulink

If you have the Video and Image Processing Blockset, use the 2D median filter and change the "Neighborhood size" to 1xN or Nx1 (...

circa 10 anni ago | 1

| accepted

Answered

If condition without loop

A(A>0 & A<=1) = 1; A(A>1 & <=2) = 2; Of course if you'd like to do this continuously (constantly rounding values, not ju...

If condition without loop

A(A>0 & A<=1) = 1; A(A>1 & <=2) = 2; Of course if you'd like to do this continuously (constantly rounding values, not ju...

oltre 10 anni ago | 0

Answered

me not like new lay out of this section! (not a question)

What is the value of having a *"Home"* and *"Search"* link on the navigation panel (upper left hand side) if both link to the sa...

me not like new lay out of this section! (not a question)

What is the value of having a *"Home"* and *"Search"* link on the navigation panel (upper left hand side) if both link to the sa...

oltre 10 anni ago | 1

Answered

vector index of consecutive gap (NaN) lengths?

Thomas' answer is faster, but here is my go: A = [2 4 NaN 7 9 NaN NaN NaN 32 NaN NaN 8]; idx = isnan(A); [B n]= bwlab...

vector index of consecutive gap (NaN) lengths?

Thomas' answer is faster, but here is my go: A = [2 4 NaN 7 9 NaN NaN NaN 32 NaN NaN 8]; idx = isnan(A); [B n]= bwlab...

oltre 10 anni ago | 1

Question

Finding distance between endpoints of image segment: PixelList vs 'endpoints'

New Code: %% Calculate Tortuosity disp('Calculating tortuosity of large segments'); V = thin8-imdilate(cr...

oltre 10 anni ago | 2 answers | 1

Answered

Filling with color the space between to polynomial curves to represent error area.

Check out this FEX submission, it should do what you want: <http://www.mathworks.com/matlabcentral/fileexchange/13188-shade-...

Filling with color the space between to polynomial curves to represent error area.

Check out this FEX submission, it should do what you want: <http://www.mathworks.com/matlabcentral/fileexchange/13188-shade-...

oltre 10 anni ago | 0

Answered

Reshaping Blobs in a Binary

use region props area measurements and dilate the centroid points with a disk structuring element with the appropriate radius (a...

Reshaping Blobs in a Binary

use region props area measurements and dilate the centroid points with a disk structuring element with the appropriate radius (a...

oltre 10 anni ago | 0

Question

Help understanding the imbothat function.

I am using the function _imbothat_ as part of a larger image processing algorithm and it works great for what I need (I found th...

oltre 10 anni ago | 1 answer | 1

Answered

How to segment 2D breast images using fuzzy c-means algorithm

I am guessing you are using a DICOM file since this is a CT image? If so, use Image = dicomread(filename); (Help page ...

How to segment 2D breast images using fuzzy c-means algorithm

I am guessing you are using a DICOM file since this is a CT image? If so, use Image = dicomread(filename); (Help page ...

oltre 10 anni ago | 1

Answered

Small simple question about displaying multiple pictures or objects

% Generate random pictures PicNum = 5; PicSize = 100; J = zeros(PicSize,PicSize,PicNum); % Always good to preallocate...

Small simple question about displaying multiple pictures or objects

% Generate random pictures PicNum = 5; PicSize = 100; J = zeros(PicSize,PicSize,PicNum); % Always good to preallocate...

oltre 10 anni ago | 1

| accepted

Answered

Generating reconstructed image from a sinogram without using 'iradon'

<http://www.wepapers.com/Papers/78923/Filtered_Backprojection_Algorithm_in_MATLAB.ppt> That may help you.

Generating reconstructed image from a sinogram without using 'iradon'

<http://www.wepapers.com/Papers/78923/Filtered_Backprojection_Algorithm_in_MATLAB.ppt> That may help you.

oltre 10 anni ago | 0

Answered

noise removel

I = 3 * sin(.3*[1:500]')*ones(1,500) + 3 * cos(.2*[1:500]')*ones(1,500) + 0.5*ones([500 500]); % Generate random sine wave im...

noise removel

I = 3 * sin(.3*[1:500]')*ones(1,500) + 3 * cos(.2*[1:500]')*ones(1,500) + 0.5*ones([500 500]); % Generate random sine wave im...

oltre 10 anni ago | 0

Answered

How to make a FOR loop to be efficient

Perhaps break this into two separate iterations where the first optimization happens more crudely using parameters spaced more g...

How to make a FOR loop to be efficient

Perhaps break this into two separate iterations where the first optimization happens more crudely using parameters spaced more g...

oltre 10 anni ago | 0

Answered

Background Subtraction

There are various methods to better segment your image and most are best dealt with on a case by case basis. Check out Image ...

Background Subtraction

There are various methods to better segment your image and most are best dealt with on a case by case basis. Check out Image ...

oltre 10 anni ago | 0

Answered

Getting rid of NaN from 1 by n matrix

A =[1,NaN,2,3,NaN,4,5,NaN,6,7,NaN,NaN]; A(isnan(A)) = [];

Getting rid of NaN from 1 by n matrix

A =[1,NaN,2,3,NaN,4,5,NaN,6,7,NaN,NaN]; A(isnan(A)) = [];

oltre 10 anni ago | 0

| accepted

Answered

block processing of a matrix

threshold = 50; matrix = rand(32,32)*255; median_matrix = medfilt2(matrix,[3 3]); diff_matrix = median_matrix - ...

block processing of a matrix

threshold = 50; matrix = rand(32,32)*255; median_matrix = medfilt2(matrix,[3 3]); diff_matrix = median_matrix - ...

oltre 10 anni ago | 1

Answered

Radon Transform

http://www.mathworks.com/help/toolbox/images/ref/radon.html ?

Radon Transform

http://www.mathworks.com/help/toolbox/images/ref/radon.html ?

oltre 10 anni ago | 0