Message Boards Message Boards

3 Replies
0 Total Likes
View groups...
Share this post:

How can I display image binary data to image in variables dct_img1 and

Posted 10 years ago
3 Replies

thank you

One more thing, Mathematica has a built in function called FourierDCTFilter. If you'd rather use your own implementation (you seem to want 88 matrices rather than the 1616 matrices used there), the documentation page provides some guidance about how it is implemented:

Local DCT thresholding is applied to all overlapping 16*16 partitions of image. The value of each output pixel is the average of the corresponding pixel in all partitions that include the pixel.

POSTED BY: Chad Knutson

Welcome to Wolfram! There are a few language problems in your notebook.

  1. MatrixForm is useful for looking at data in a notebook. But it should not be used for subsequent evaluations.
  2. Don't use "_" on in symbol names.
  3. Semicolons are your friend for large outputs.

That said, here are some inputs that do what you want (I think):

x2 = ImageData[Import["ExampleData/lena.tif"]];
Image[x2, ColorSpace -> "RGB"] 

Below, you are trying to do some matrix evaluations with incompatible sized matrices. I'm not sure what you're trying to do here, so I'll leave that problem for someone else.

In[56]:= Dimensions@x2

Out[56]= {116, 150, 3}

dct1 = FourierDCTMatrix[8];
In[57]:= Dimensions@dct1

Out[57]= {8, 8}
POSTED BY: Chad Knutson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract