Answered
2 unknowns in matching datasets
I'm sure there are other ways, but: load datasett.mat % omit nans nanmask = ~(isnan(Y1) | isnan(Y2) | isnan(Y3)); Y1 = Y1(...

27 dagen ago | 0

| accepted

Answered
How do I convert my RGB image to grayscale without using the Image Processing Toolbox?
There is more than one way to represent an RGB image as grayscale. If you want to replicate rgb2gray() from Image Processing To...

27 dagen ago | 0

Answered
Change RGB image to gray without rgb2gray function
Assuming that the input is an RGB image and that the intended grayscale representation is luma and not something else: % get an...

27 dagen ago | 0

Answered
i need negative image
It's best to avoid writing your code around unchecked assumptions of array class. If you have Image Processing Toolbox, imcompl...

28 dagen ago | 0

Answered
Rotate an Ellipsoid towards a point
Try this: theta = linspace(0, pi, 25); phi = linspace(0, 2*pi, 25) ; x = 10*sin(theta)'*cos(phi); y = 1*sin(theta)'*sin(phi)...

28 dagen ago | 0

Answered
Display original and processed image simultaneously in different UIAxes in App Designer
The images appear alternately because that's what the code plainly does. It shows one image, waits, shows another. It doesn't ...

28 dagen ago | 0

| accepted

Answered
How can the image be like this?
This is one way: A = imread('peppers.png'); imshow(A) B = zeros(size(A),class(A)); % black image B(100:250,200:350,:) = A(10...

28 dagen ago | 1

Answered
Change for loop to while loop.
If you want to make things more complicated, you can: n = 5; %input ("Input a number: "); fprintf("\nOdd number: "); i = 1;...

28 dagen ago | 0

Answered
Creating a contour plot with three row vectors
I answered a similar question recently. https://www.mathworks.com/matlabcentral/answers/1693130-how-to-use-a-contour-between-...

28 dagen ago | 2

| accepted

Answered
I'm trying to operate on each element of a row vector individually but unable to do so, as each element is containing a vector within itself.
I think what you're asking is to get the number of elements for each vector within the cell array. You can do that either with ...

28 dagen ago | 0

Answered
Check if a binary image is within a particular binary area
I'm assuming your images are the same size, but contain objects of differing size. The intersection of two binary images A and ...

28 dagen ago | 1

| accepted

Answered
How do I draw overlapping circles wich change color?
Here's one way: % image setup sz = [600 600]; % image size cim = sz/2; % [y x] center of image r1 = 100; % radius of small c...

28 dagen ago | 0

Answered
Help on while loop to make user enter an accepted value
pC can't be <0 && >100 This should fix the issue and simplify things pC = -1; % initialize while (~isnumeric(pC) || (pC<...

29 dagen ago | 1

Answered
Code for making a reddish image from an RGB image
I've answered a couple very similar-sounding questions recently: How to make image "yellowish"? (explaining 'screen' blend, alt...

29 dagen ago | 0

Answered
Why is my plot empty?
The plot doesn't display because all of the output values (except for tt = 0) are NaN. L is a relatively large number ~2E6, s...

29 dagen ago | 0

Answered
How to "circularize" a 1-D plot into a 2-D image
Depending on what you need, this may be a start. % define TF curve tfr = [0 1.3 4]; tfz = [1 1 0.2]; % array setup maxxy = ...

29 dagen ago | 0

Answered
how does this code make sense?
I'm not really sure if the answer you're getting is the answer you want or if you just want an explanation of why you're getting...

29 dagen ago | 0

| accepted

Answered
How to create a double scale of units in figures?
Since R2019b, you should be able to use a method similar to this example to create the secondary x and y axes: https://www.math...

29 dagen ago | 0

Answered
How to create an RGB image?
If all you're after is a uniform colored field, it can be rather simple. You don't have to get stuck trying to intuit your way ...

29 dagen ago | 0

Answered
How to create rgb image in matlab?
I figure if hundreds of people come here every month looking for the answer to an incredibly vague question, it's about time som...

29 dagen ago | 0

Submitted


Image Manipulation Toolbox
A large collection of image manipulation tools of varying utility

29 dagen ago | 136 downloads |

Thumbnail

Submitted


Image blending functions
Image blending & compositing with support for 4D images, influence scaling, and several uncommon modes

29 dagen ago | 14 downloads |

Thumbnail

Answered
How to make salt pepper noise own code
This is the way that MIMT imnoiseFB() does it when in fallback mode. This will replicate the behavior of IPT imnoise(). Note t...

30 dagen ago | 0

Answered
Image processing glass quality control, my code isn't working good
I'm going to take a shot in the dark and assume that the image difference is such that the result is getting truncated. Normall...

30 dagen ago | 0

Answered
How can I separate objects with one pixel connected after bwlabel
Depending on what the rest of the blobs look like, this may be one way. % fix the image and return it to what I assume the orig...

30 dagen ago | 1

| accepted

Answered
'jet' countour plot over grayscale image
This is easier than everyone is making it. You can avoid the necessity for two colormaps by simply expanding the single-channel...

ongeveer een maand ago | 1

Answered
How to use logic operators in Image Processing
This should be a start. % read the image A = imread('cameraman.tif'); % quantize intensity G2 = bitand(A,uint8(128)); G...

ongeveer een maand ago | 0

Answered
how to make yellowish image
What's being performed here is a 'screen' type blend between the image and a color overlay. I'm sure there's an unspoken proble...

ongeveer een maand ago | 0

Answered
I convolve two images but doesn't work can you help me.
There is no convolution happening here. You didn't include either image, so I don't know if a mismatch of channels is also caus...

ongeveer een maand ago | 0

Answered
How can i display I of YIQ from a jpg image?
The assignment text doesn't make any sense. The logical AND of Y and I or Y and Q isn't anything useful -- and it's certainly no...

ongeveer een maand ago | 1

| accepted

Load more