Respondida
Most efficient way to separate numerically labeled objects that share borders?
You don't need bwlabel, like KSSV suggested, because your matrix is already labeled. You can simply use oneBlob = ismember(IM...

más de 3 años hace | 0

Respondida
็็How can I delete shadow in this picture
You're best off using a different lighting geometry so that you don't have the shadow in the first place. But if you must have ...

más de 3 años hace | 0

Respondida
Detect the boundary in a 2 clustered colored image
You get a mask for the yellow, then call bwboundaries and then use sqrt (optional) and min: boundaries = bwboundaries(yellowMas...

más de 3 años hace | 1

| aceptada

Respondida
How to calculate whether two sets of images differ in spatial frequency?
I don't have a script but what I'd do is for each set, compute the fft2 of each image. Then add up all the FFT's of all the ima...

más de 3 años hace | 0

Respondida
Creating a cosine oscillation ( cos(2 * pi * f * k * T) )
A cosine wave is of the form y = Amplitude * cos(2 * pi * omega * time) So for your formula Amplitude = 50; and I beleve T i...

más de 3 años hace | 0

Respondida
image processing, k nearest neighbor
Here's simple demo, attached, that operates on (x,y) data.

más de 3 años hace | 0

Respondida
zoom image interactively maintaining a square zoom field
Try using a scroll panel. See attached demo.

más de 3 años hace | 2

| aceptada

Respondida
Matlab Code: Eval and Sub2ind

más de 3 años hace | 0

Respondida
convolution without conv function
Attached is a "manual" way to do convolution. It will be straightforward to adapt it from 2-D images to 1-D vectors if you want...

más de 3 años hace | 0

Respondida
What to do if i accidentally named two files the same name, and cant find one of them now.
Go to https://www.voidtools.com/ and download a utility called Everything. It's like the Windows File Explorer search except wa...

más de 3 años hace | 0

| aceptada

Respondida
how to loop through a folder
Try this: % Optional initialization steps clc; % Clear the command window. close all; % Close all figures (except those o...

más de 3 años hace | 0

Respondida
bypass an "if" within another using a flag
Since the b>c test occurs only inside the a>b block, and it's the only thing in the a>b block, you could simply do if a>b && b>...

más de 3 años hace | 0

Respondida
I have a problem with appdesigner, can you help me?
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI(s)?

más de 3 años hace | 1

Respondida
I have a problem with appdesigner, can you help me?
if app.checkBox.Value uiwait(helpdlg('The checkbox is currently checked.')) else uiwait(helpdlg('The checkbox is curr...

más de 3 años hace | 2

Respondida
Extract data from a histogram
Try this: grayImage = imread('cameraman.tif'); subplot(2, 1, 1); imshow(grayImage, []); subplot(2, 1, 2); imhist(grayImage)...

más de 3 años hace | 1

| aceptada

Respondida
drawing gaussian wave in matlab
Try this: % Optional initialization steps clc; % Clear the command window. close all; % Close all figures (except those o...

más de 3 años hace | 0

Respondida
Adjust regionprops orientation to 0-360 degrees
We can't do much without an image. But after rotation, you'd have to determine if the head was at the top or bottom somehow, or...

más de 3 años hace | 0

Respondida
i'm new to matlab. i need to use a tracking software and got this error, need help
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this: TUTOR...

más de 3 años hace | 0

Respondida
How to declare Rayleigh random variables ?
Did you try random in the Statistics and Machine Learning Toolbox. It can produce random numbers drawn from a Rayleigh distribu...

más de 3 años hace | 0

Respondida
How can I put images in a table using gui?
Perhaps try undocumentedmatlab.com https://undocumentedmatlab.com/?s=images+table https://undocumentedmatlab.com/articles/imag...

más de 3 años hace | 1

Respondida
How can I place the cancerous area on the CT image and separate it into ROI and non-ROI?
OK, here is an example.

más de 3 años hace | 0

| aceptada

Respondida
I have boundaries of objects in my code. I want to use those boundaries to calculate the features of those objects in my preceding loop. please help fix
You don't need that inside loop over size(B, 1). You can simply get all the values like % Calculate region properties for each...

más de 3 años hace | 1

| aceptada

Respondida
How can I place the cancerous area on the CT image and separate it into ROI and non-ROI?
Start with the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files? Then see my Image Segmentation Tu...

más de 3 años hace | 0

Respondida
Code to store impixel data from a series of images throws errors upon reaching the end of the first increment of the loop
The problem is the code is not very robust. You should see the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_seq...

más de 3 años hace | 0

| aceptada

Respondida
How to define different colors for different edges?
If you can get the coordinates of the line endpoints, you can use the line function to overwrite that shape with colors of your ...

más de 3 años hace | 0

| aceptada

Respondida
Remove rows in a matrix where there isn't a change larger than 3 in either column
Do you mean a change between the first column and second column in each row? Try this changes = m(:, 2) - m(:, 1); % Change fr...

más de 3 años hace | 0

Respondida
Grouping times by end to start time
Not sure how you got your results but they don't seem to follow your definition of the gap time being the time between the start...

más de 3 años hace | 0

Respondida
Grouping times by end to start time
If you have the stats toolbox, I'd use dbscan https://en.wikipedia.org/wiki/DBSCAN % Optional initialization steps clc; % ...

más de 3 años hace | 0

Respondida
How to modify a sine wave
Hint: signal = min(signal, 0.7);

más de 3 años hace | 0

Respondida
need help with this task in matlab onramp final project
I think you want dashed if it's below 0 and solid line if it's above 0, so something like negativeIndexes = speed(v) <= 0; % A ...

más de 3 años hace | 0

Cargar más