Respondida
Display an image processed in LAB channel
The code looks right. The problem is that CLAHE is often not a good algorithm because it's non-linear. Try imadjust instead.

casi 3 años hace | 0

Respondida
Smallest mask enclosing a polygon
Not sure what you're calling mask and what you're calling polygon, but the smallest shape that would enclose the blue shape with...

casi 3 años hace | 0

Respondida
Drawing auto polyline around tif image
Not sure how I missed this when it was first posted but here is one way I'd do it. %% Extract the contour from the BC image cl...

casi 3 años hace | 0

Respondida
How to solve error "access denied" when using mkdir?
This is what I'd do folder = '\\dbfz-user.leipzig.dbfz.de\user$\jboettner\Documents\HiWi\Matlab\File import\angepasste_Ausgabed...

casi 3 años hace | 0

Respondida
In an assignment A(:) = B, the number of elements in A and B must be the same. How can I fix this error?
See the FAQ for a thorough general explanation. https://matlab.fandom.com/wiki/FAQ#%22In_an_assignment_A(I)_=_B,_the_number_of_...

casi 3 años hace | 0

Respondida
calculate the averages of non-squared matrix blocks
Here is one way (there are others): % Define the 12x4 matrix A = [1 0 2 0; 0 1 3 0 ; 1 1 0 0 ; 0 2 3 1 ; 3...

casi 3 años hace | 0

Respondida
Random number of points moving with given velocity
You need a comma after 'Position' : set(MOVINGPOINT,'Position', [trajectory(1,frameNo)-0.25,trajectory(2,frameNo)-0.25,0.5,0.5]...

casi 3 años hace | 0

Respondida
how to index the stating position of something?
If you have the Image Processing Toolbox, why not use the power of the bwareafilt function to immediately extract the longest ru...

casi 3 años hace | 0

Respondida
how to close error dialog
Fix the code or data so that the errors never occur. Or else just call "return" instead of uiwait(errordlg("You made a mistak...

casi 3 años hace | 0

Respondida
How can I add the correct coefficients from exponential curve fitting to the code
I don't get anything like either of your two sets of coefficients. This is what I get: % Uses fitnlm() to fit a non-linear mod...

casi 3 años hace | 1

Respondida
New line after fprintf in a for/ while loop
Let's say you loop over val1 to val2, and you want to only enter the loop if val1 is more than 5 and val2 is less than 80. One ...

casi 3 años hace | 0

Respondida
Finding the first 1 in a binary set using optimization
Why not simply do V=[zeros(1,10^4) 1 zeros(1,100) 1 1 zeros(1,10^3)]; index = find(V == 1, 1, 'first') ???

casi 3 años hace | 0

Respondida
MATLAB standalone App not working when installed on another system
See the FAQ for a list of common reasons your compiled app won't run on a target system: https://matlab.fandom.com/wiki/FAQ#My_...

casi 3 años hace | 1

| aceptada

Respondida
Compare each spectrum to a reference spectrum.
Try something like this (untested) to compare spectro files to a ref spectro file using RMS. Adapt as needed. % Specify the fo...

casi 3 años hace | 1

| aceptada

Respondida
The given below i put 100%efforts but do not solve.so please help me. I prepocessed the three signals and added the nm2cm but do not pass the test cases.
MATLAB is case sensitive. You created harp_Cm while it wanted harp_cm with a lower case c. harp_cm = harp; % Duplicate harp an...

casi 3 años hace | 2

| aceptada

Respondida
Image acquisition in parallel via FireWire
Post a screenshot of what you see when you run imageAcquisitionExplorer or imaqtool If there are two cameras you should see two...

casi 3 años hace | 1

Respondida
how to assign a numerical value to an image based on the gray scale present in the image
Hint: function [meanGL, returnValue] = MyHomework(inputImage) meanGL = mean2(inputImage); percentage = %code if percentage >...

casi 3 años hace | 0

Respondida
Why does Matlab 2023a crash when running my code?
See support article: https://www.mathworks.com/matlabcentral/answers/157894-resolving-low-level-graphics-issues-in-matlab?s_tid...

casi 3 años hace | 0

Respondida
how to extract elements that are not succesive
Here's help: Invest 2 hours of your time here: MATLAB Academy - Free 2 hour training You will learn things like that plus mo...

casi 3 años hace | 0

Respondida
how to draw a tangent line between two point (highest points) and draw a perpendicular drop line from mid of the tangent line?
Here's a start. See if you can finish it: x1 = 50; x2 = 62; y1 = 60; y2 = 64; plot([x1, x2], [y1, y2], 'k.-', 'MarkerSize'...

casi 3 años hace | 0

Respondida
unable to run the label overlay of original and labeled image for data training on matlab
I'm not sure what your x is, but something like this works fine: x = imread('moon.tif'); % x is a gray scale image. rgbImage =...

casi 3 años hace | 0

Respondida
Can a stand alone version be used by anyone?
If you have the Compiler Toolbox in your license, then yes you can distribute the standalone executable to anyone and they can r...

casi 3 años hace | 0

Respondida
Complete unexpected GUI-elements behavior
Maybe try to build it from scratch using App Designer instead of GUIDE.

casi 3 años hace | 0

Respondida
Count and measure objects in a photo
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

casi 3 años hace | 0

| aceptada

Respondida
Using methods across multiple class objects of the same class?
If the results are strings, try {MyOperatingPoint.Run.fooProp1} or vertcat(MyOperatingPoint.Run.fooProp1)

casi 3 años hace | 0

| aceptada

Respondida
how to process multiple video files from a folder
This is one of the most common FAQ questions, so see the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_o...

casi 3 años hace | 1

Respondida
Undefined function 'imsegkmeans' for input arguments of type 'uint8'.
I don't like that function anyway. K-means is not what you want to do unless you have a good supply of each class in each image...

casi 3 años hace | 0

Respondida
segmentation using k-means clustering
Sorry I didn't see this when it was posted 3 years ago. As you can see the whole approach is wrong. K-means is not what you wa...

casi 3 años hace | 0

Respondida
Magnifying a Segment of Plot in MATLAB Figure
I'm attaching some of my demos where I insert axes into axes as small insets. Adapt the "inset_plot_within_another_plot.m" fi...

casi 3 años hace | 0

Respondida
How to determine resolution of an image in micron/pixel
I believe you can tell your microscope to stamp a "micron bar" into your image. Do that, then calibrate to it. See the attache...

casi 3 años hace | 0

| aceptada

Cargar más