Beantwortet
Hi, How to segment(divide) an image into four halves of "different dimensions" automatically as shown in the attached image using MATLAB?
Here's one idea. inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1234097/cars.jpg'); graypic...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
I'm trying to create a [100x100] symmetric matrix with diagonals counting 102030405.......
If you want what's given in the screenshot: N = 7; % the size of the output matrix % generate the union of the edge vectors ...

mehr als 3 Jahre vor | 0

Beantwortet
Why is matlab seeing images rotated?
See this thread: https://www.mathworks.com/matlabcentral/answers/1861338-find-width-and-height-of-jpg-image Attached is an u...

mehr als 3 Jahre vor | 0

Beantwortet
I need to add and multiply a vetor
You mean something like this? u = cos(0:pi/20:pi); v = sum(u(2:end) .* u(1:end-1))

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
errors when running a function
It's unclear what situation you're in. It appears that you don't have Image Processing Toolbox. I thought that im2gray() was p...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to change a sequence of strings into a sequence of binary?
Consider: str = 'Daniel'; binary = dec2bin(str); % need to keep the structure for the moment string = char(bin2dec(binary)).'...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I convert my image to a red image
That would work if you wanted a red image. It would even work if your input image were single-channel. inpict = imread('came...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
filling holes in the masked image please help me to replace blue color background of given giraffe image with forest image.
See this thread about the same image set. For what it's worth, I didn't have the source images, but it should be a start. http...

mehr als 3 Jahre vor | 0

Beantwortet
HI so im changing the color of the image to green and blue but its not working one of them gives an error and the other gives a red color
What is the size of app.Image? If it's not MxNx3, then you'll have to find out why it's not. For example, it's possible that...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Difference between binary and grayscale images?
Interpretations may vary, but I think a common general description would be. This is just my interpretation. A grayscale image...

mehr als 3 Jahre vor | 1

Beantwortet
Is it possible to visualise NxNxN mesh/matrix as a figure or image?
You can probably use volshow() or the Volume Viewer app, depending on how things are scaled. It really depends what the data lo...

mehr als 3 Jahre vor | 0

Beantwortet
Calculate minimum distance in image
Here's one way. You can also use pdist2() if you have it. inpict = imread('https://www.mathworks.com/matlabcentral/answers/u...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
What can we do with the thread "license-manager-error-9"?
I know that the prevailing recommendation is to let TMW police their own disaster threads, but I'll still delete anything new th...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
how to solve image process error using MATLAB
There are many errors. I'm just going to add comments. This needs a lot of cleanup. A='peppers.png'; % <-- i'm using this ins...

mehr als 3 Jahre vor | 1

Beantwortet
How to extract RGB
I'm just going to throw this down here. MATLAB has no native HSI conversion tools. It has HSV tools, but if you actually want ...

mehr als 3 Jahre vor | 0

Beantwortet
matrix normalization in matlab
Since R2018a, you can use normalize() to perform normalization in various different ways. A = 1:6 B1 = normalize(A,'range') % ...

mehr als 3 Jahre vor | 0

Beantwortet
Kindly explain the code (each step in detail) thanks.
First part % Different ways to convert RGB image into grey scale <-- misleading comment clear all; % removes all variables, gl...

mehr als 3 Jahre vor | 0

Beantwortet
[Ask Help] - Erode/Erosion Matrix
If the goal is to look for a certain neighborhood, you can use bwlookup() for this. A = [1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 ...

mehr als 3 Jahre vor | 0

Beantwortet
How can insert PNG image as marker and remove transparent region?
You need to read the alpha data from the image and then apply it to the image object. See this thread. I include a similar m...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to standardize an array so that the maximum value is 1 and minimum is -1 keeping the zero value as zero?
I'm not into statistics, so I have no idea if this has merit. I'm occasionally after preserving linearity and the center (zero)...

mehr als 3 Jahre vor | 1

Beantwortet
Finding the width of a blob perpendicular to the major axis
Unless you have some existing means to find the major axis, I'd still use feret properties to rotate the object. The rest of th...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I want to rotate the rotated image in the forward direction. How do I do this?
For this specific image, you could also try calculating the angles by finding certain features. For what it's worth: % the i...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how can I multiply two different size matrices in iterations like 7x7 and 4x4?
See these answers to a similar question: https://www.mathworks.com/matlabcentral/answers/1867698-shift-a-square-matrix-along-a-...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Crop and change perspective of image
You can use fitgeotrans() and imwarp(). It's a little more generalized, so it's not exactly a one-liner. Here is one example c...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How do I get pixel intensity values of images stored in an array ?
That would be correct, assuming that i is a real-valued integer between 1 and size(adj,3). The output will be the value at the ...

mehr als 3 Jahre vor | 1

Beantwortet
How can I put single quotes inside single quotes?
You can escape single quotes with another single quote. For sake of clarity, I'm going to transpose the output. vector = ['a...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Displaying 16 bit images
It's hard to know what you're doing wrong exactly since you didn't give a code example, but I'm going to guess. Imshow() will...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Same code I can successfully run in R2021b but in R2016a it is showing Error using - Matrix dimensions must agree. What should I change to run this in R2016a?
R2016b introduced implicit array expansion. You're relying on that. The loops are also unnecessary. i = 10; j = 5; r1 = 1; ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Replace the image background
I don't know what you expect. Handing off your assignment in whole with zero effort shown on your part shouldn't be expected to...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can I write a function that can create nested loops
rng(123) % make sure inputs are repeatable Ftu = rand(1,49); qu = rand(1,49); qd = zeros(1,49); % preallocate qd(:,1) = Ft...

mehr als 3 Jahre vor | 1

Mehr laden