파일:Mandelbrot Set Image 60.png

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (1,920 × 1,920 픽셀, 파일 크기: 6.55 MB, MIME 종류: image/png)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    Русский: Фрагмент множества Мандельброта, координаты центра: -0.5503432753421602, -0.6259312704294012 ширина изображения 0.000000000000225
    • Метод: 80-битная длинная двойная точность.
    • Сглаживание: 64x SSAA (суперсэмплинг 8x8).
    • Многопоточность на чистом C++11: Высокоскоростные параллельные вычисления, встроенные непосредственно в стандарт языка, масштабируются прозрачно на разных архитектурах ЦП.
    • Программное обеспечение: C++ (скомпилировано с помощью g++), компилятор GNU C++. g++ -O3 -s main.cpp -o Mandelbrot.exe
    • Алгоритм на Rosetta Code: https://rosettacode.org/wiki/Mandelbrot_set#80-bit_precision
    English: Fragment of the Mandelbrot set, coordinates: -0.5503432753421602, -0.6259312704294012 width 0.000000000000225
    • Method: 80-bit long double precision.
    • Anti-aliasing: 64x SSAA (8x8 supersampling).
    • Pure C++11 Multi-threading: High-speed parallel computing built directly into the language standard, scaling transparently across CPU architectures.
    • Software: C++ (compiled with g++), GNU C++ Compiler. g++ -O3 -s main.cpp -o Mandelbrot.exe
    • Rosetta Code: https://rosettacode.org/wiki/Mandelbrot_set#80-bit_precision
    날짜
    출처 자작
    저자 Aokoroko

    Source code (C++)

    #include <iostream>
    #include <fstream>
    #include <vector>
    #include <cmath>
    #include <cstdint>
    #include <string>
    #include <cstdio>
    #include <iomanip>
    using namespace std;
    const long double PI = 3.14159265358979323846264338327950288L;
    #pragma pack(push, 1)
    struct BMPHeader {
        uint16_t type{0x4D42};
        uint32_t size{0};
        uint16_t reserved1{0};
        uint16_t reserved2{0};
        uint32_t offBits{54};
        uint32_t structSize{40};
        int32_t  width{0};
        int32_t  height{0};
        uint16_t planes{1};
        uint16_t bitCount{24};
        uint32_t compression{0};
        uint32_t sizeImage{0};
        int32_t  xpelsPerMeter{2834};
        int32_t  ypelsPerMeter{2834};
        uint32_t clrUsed{0};
        uint32_t clrImportant{0};
    };
    #pragma pack(pop)
    int main() {
        long double rx = stold("-0.5503432753421602"); 
        long double ry = stold("-0.6259312704294012"); 
        long double sz = stold("0.000000000000225");
        const int targetW = 2160;
        const int targetH = 2160;
        const int scale = 8;
        const int rawW = targetW * scale;
        const int rawH = targetH * scale;
        const int frame = 195;
        const int max_iter = 50000;
        long double step_d = sz / (long double)rawW;
        uint8_t pal[256][3];
        for (int a = 0; a < 255; ++a) {
            pal[a][0] = (uint8_t)round(127.0 + 127.0 * cos(2.0 * PI * a / 255.0)); // Blue
            pal[a][1] = (uint8_t)round(127.0 + 127.0 * sin(2.0 * PI * a / 255.0)); // Green
            pal[a][2] = (uint8_t)round(127.0 + 127.0 * sin(2.0 * PI * a / 255.0)); // Red
        }
        pal[255][0] = 255; pal[255][1] = 255; pal[255][2] = 255;
        cout << "Step 1: Rendering Mandelbrot using 80-bit long double (" << targetW << "x" << targetH << ")..." << endl;
        int rowSize = (targetW * 3 + 3) & ~3;
        BMPHeader header;
        header.width = targetW;
        header.height = targetH;
        header.sizeImage = rowSize * targetH;
        header.size = header.sizeImage + 54;
        ofstream f("Mandelbrot Set Image 60.bmp", ios::binary);
        f.write(reinterpret_cast<char*>(&header), 54);
        #pragma omp parallel for schedule(dynamic)
        for (int y = 0; y < targetH; ++y) {
            vector<uint8_t> threadRowBuffer(rowSize, 0);
            for (int x = 0; x < targetW; ++x) {
                uint32_t rSum = 0, gSum = 0, bSum = 0;
                for (int j = 0; j < scale; ++j) {
                    size_t b = (size_t)y * scale + j;
                    long double c_im = ry + (long double)((long long)b - (rawH / 2)) * step_d;
                    for (int i = 0; i < scale; ++i) {
                        size_t a = (size_t)x * scale + i;
                        long double c_re = rx + (long double)((long long)a - (rawW / 2)) * step_d;
                        long double z_re = 0.0L;
                        long double z_im = 0.0L;
                        int iter = 0;
                        while (iter < max_iter) {
                            long double z_re2 = z_re * z_re;
                            long double z_im2 = z_im * z_im;
                            if ((z_re2 + z_im2) >= 40000.0L) {
                                break;
                            }
                            z_im = 2.0L * z_re * z_im + c_im;
                            z_re = z_re2 - z_im2 + c_re;
                            iter++;
                        }
                        int final_t = max_iter - iter;
                        uint8_t t = (final_t == 0) ? 255 : (uint8_t)(final_t % 254);
                        int colorIdx = (t == 255) ? 255 : (t - frame + 255) % 255;
                        bSum += pal[colorIdx][0];
                        gSum += pal[colorIdx][1];
                        rSum += pal[colorIdx][2];
                    }
                }                
                int outIdx = x * 3;
                threadRowBuffer[outIdx + 0] = (uint8_t)(bSum >> 6);
                threadRowBuffer[outIdx + 1] = (uint8_t)(gSum >> 6);
                threadRowBuffer[outIdx + 2] = (uint8_t)(rSum >> 6);
            }
            #pragma omp critical
            {
                f.seekp(54 + (streamoff)y * rowSize);
                f.write(reinterpret_cast<const char*>(threadRowBuffer.data()), rowSize);
            }
            if ((y + 1) % 10 == 0 || y == targetH - 1) {
                #pragma omp critical
                {
                    cout << "Progress: " << (y + 1) << "/" << targetH << "\r" << flush;
                }
            }
        }
        f.close();
        cout << "\nDone! Mandelbrot Set Image 60.bmp successfully saved." << endl;
        return 0;
    }
    


    Deep zoom videos

    Color cycling GIF animations

    Static color cycling animation (Palette shifting)

    Images rendered using perturbation theory and bilinear approximation

    Images at zoom scales not exceeding 10−19 (80-bit precision limit)

    라이선스

    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    Creative Commons CC-Zero 이 파일은 크리에이티브 커먼즈 CC0 1.0 보편적 퍼블릭 도메인 귀속에 따라 이용할 수 있습니다.
    저작물에 본 권리증서를 첨부한 자는 법률에서 허용하는 범위 내에서 저작인접권 및 관련된 모든 권리들을 포함하여 저작권법에 따라 전 세계적으로 해당 저작물에 대해 자신이 갖는 일체의 권리를 포기함으로써 저작물을 퍼블릭 도메인으로 양도하였습니다. 저작권자의 허락을 구하지 않아도 이 저작물을 상업적인 목적을 포함하여 모든 목적으로 복제, 수정·변경, 배포, 공연·실연할 수 있습니다.

    이 그림은 고화질 그림 지침에 적합한 것으로 인정을 받아 선정된 고화질 그림입니다.

    العربية ∙ جازايرية ∙ беларуская ∙ беларуская (тарашкевіца) ∙ български ∙ বাংলা ∙ català ∙ čeština ∙ Cymraeg ∙ Deutsch ∙ Schweizer Hochdeutsch ∙ Zazaki ∙ Ελληνικά ∙ English ∙ Esperanto ∙ español ∙ eesti ∙ euskara ∙ فارسی ∙ suomi ∙ français ∙ galego ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ հայերեն ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ Jawa ∙ ქართული ∙ Qaraqalpaqsha ∙ 한국어 ∙ kurdî ∙ кыргызча ∙ Latina ∙ Lëtzebuergesch ∙ lietuvių ∙ македонски ∙ മലയാളം ∙ मराठी ∙ Bahasa Melayu ∙ Nederlands ∙ ਪੰਜਾਬੀ ∙ Norfuk / Pitkern ∙ polski ∙ português ∙ português do Brasil ∙ rumantsch ∙ română ∙ русский ∙ sicilianu ∙ slovenčina ∙ slovenščina ∙ shqip ∙ српски / srpski ∙ svenska ∙ தமிழ் ∙ తెలుగు ∙ ไทย ∙ Tagalog ∙ toki pona ∙ Türkçe ∙ українська ∙ oʻzbekcha / ўзбекча ∙ vèneto ∙ Tiếng Việt ∙ 中文 ∙ 中文(简体) ∙ 中文(繁體) ∙ +/−

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
    Fragment of the Mandelbrot set, coordinates: -0.5503432753421602, -0.6259312704294012 width 0.000000000000225

    이 파일에 묘사된 항목

    다음을 묘사함

    44,311,941 바이트

    3,840 화소

    3,840 화소

    1031e1e541e94335045fb0253eef2dd0d38ae62a

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2026년 3월 14일 (토) 22:012026년 3월 14일 (토) 22:01 판의 섬네일1,920 × 1,920 (6.55 MB)wikimediacommons>AokorokoRed channel - sin 2π

    이 파일을 사용하는 문서가 없습니다.