Réponse apportée
GUIDE brightness/contrast function explained
I wouldn't say the code "works perfectly", since it doesn't do what is implied that it does -- though in its defense, its lack o...

environ 4 ans il y a | 0

Réponse apportée
How do I get the value of C and ws in adaptive thresholding?
You have to select them based on the image content and your own intent. Refer to the documentation: https://homepages.inf.ed.a...

environ 4 ans il y a | 0

Réponse apportée
add a moving image over a plotted trajectory
Assuming you actually want it to move in real time, this should be a start x = 0:pi/100:2*pi; y = sin(x); plot(x, y); hold on...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to calculate the total pixel value in volume segmentation
I'm not quite sure if this is what you're after, but this: pnz = nnz(P); will give you the total number of nonzero elements in...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
one of my nested functions isnt recognising a function made in another function? i know the codes messy and could be improved but i just want to make it work first
Since I don't even know how to call the function or what it's supposed to do, I can't really do much but point out problems and ...

environ 4 ans il y a | 0

Réponse apportée
How to access images(like Image1,Image2...)from a folder and pass through a code in Matlab?
You created a variable called imgName, but you're not using it. input_image = imread(imgName,'.jpg'); Of course, since this ...

environ 4 ans il y a | 0

Réponse apportée
How do I add "color" to an image?
There really isn't anything in base MATLAB or IPT for doing color adjustment. I'm not familiar with Photoshop, and don't have...

environ 4 ans il y a | 0

Réponse apportée
How can I change the color of the hair such that it has the same texture as the original hair?
There are a number of things going wrong here. I kind of wish this were active. Let's start with OP's example. Since the or...

environ 4 ans il y a | 0

Réponse apportée
pixelation
It can be simple enough: inpict = imread('peppers.png'); sz = size(inpict); blocksize = [10 10]; outpict = imresize(inpict...

environ 4 ans il y a | 0

Réponse apportée
How to display Y, Cb and Cr components of an image?
While I agree with Image Analyst that grayscale representations of the chroma channels are accurate, easier to read, and should ...

environ 4 ans il y a | 0

Réponse apportée
How to change 1 channel image to 3 channel
Alternative to using cat(), the same can also be done a couple other ways. You can use repmat() rgbpict = repmat(graypict,[1...

environ 4 ans il y a | 0

Réponse apportée
how to preserve RGB values of an image while making it gray image
You don't. When you convert a color image to grayscale, you are discarding the color information. It's gone. If you want to...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
someone who can help me to correct my problem please????
Since n is defined, and you're using cell mode, then I have to assume the problem is that you're running the last code section b...

environ 4 ans il y a | 0

Réponse apportée
how to convert a gray scale image to color image using matlab
To answer the original intent of the question, there is no trivial way to return a grayscale image back to its original color. ...

environ 4 ans il y a | 1

Réponse apportée
switch between colors on image
A lot of people are looking at this old thread, so I assume their needs are not necessarily the same as the OP. I think when mo...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to get all possible permutations in binary format?
I'm not sure, but are you thinking of something like this? B = [0,1,0;0,0,1;1,1,0;0,1,1;1,0,1;1,0,0]; % all permutations of ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to avoid color repetition in plotting lines
The colors used by line plots are drawn from the 'colororder' property of the parent axes. By default, this is set to lines(7),...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Index in position 1 exceeds array bounds. Erroy when trying to plot rectangle.
I don't know why you decided to suddenly abandon your indexing scheme. Replace all this: n = numberRooms(1,1); for i = 1:1:n ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to find closest values within a matirx
I'm not really sure what you mean by "closest values". Maybe you're talking about inpainting? A = [NaN NaN NaN 7 8 9; NaN...

environ 4 ans il y a | 0

Réponse apportée
How to delete a file I submitted on File Exchange ?
If you just want to delete the whole submission, there should be a button on the upper right. If you have a submission cons...

environ 4 ans il y a | 0

Réponse apportée
Red channel compensation in underwater images in-order to implement in matlab?
As far as I understand it, there isn't one equation; there are various techniques of differing complexity. I don't see any that...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
How do I assign colours to every plotted dot if I have the colours as cell arrays
Normally, you'd do this by using a colortable (or a list of indices into a color table) with scatter(). x = 1:4; y = 1:4; c...

environ 4 ans il y a | 0

Réponse apportée
2D Graph Scaling
I don't see why you can't just use semilogy() or loglog() to do the plot. https://www.mathworks.com/help/matlab/ref/semilogy.ht...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Isolate low contrast rectangle of known size from image
This might be an idea for a way. With only one test case, it's hard to tell if this is even remotely robust. I imagine it can...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Populate a 1000x1000 array with rows where a value is added every second, then third etc. column
If you were getting a bunch of ones, you were probably pretty close. N = 1000; everyN = zeros(N); for n = 1:N everyN(n...

environ 4 ans il y a | 2

Réponse apportée
how to change specific color define by the user to black in matlab?
I answered a similar question earlier: https://www.mathworks.com/matlabcentral/answers/1706905-how-can-i-change-the-red-chips-t...

environ 4 ans il y a | 0

Réponse apportée
Bar Fill Pattern problem in plot
There are tools on the File Exchange for doing that. https://www.mathworks.com/matlabcentral/fileexchange/53593-hatchfill2 Se...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How can I change the red chips to black as the red and orange overlap a lot and the edges and shadows are still red/orange with my code.
Continuing from this question, I suppose that the masking can be better done in something other than RGB. Getting perfect fits ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Can an RGB image be stored as 2D matrix without converting to greyscale image?
I imagine another obvious interpretation of the question would be "can I store a color image in a 2D array?" with no stipulation...

environ 4 ans il y a | 0

Réponse apportée
how to reduce the brightness of an image?
There are many different ways, using both simplistic direct methods and purpose-built tools. The answers in this related questi...

environ 4 ans il y a | 0

Charger plus